delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/04/14:06:32

From: "Johnny" <dave1 AT nospam DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Having A Problem with Allegro
Date: Sun, 4 Oct 1998 13:00:41 -0500
Organization: [poster's organization not specified]
Lines: 18
Message-ID: <6v8d73$770$1@news3.mr.net>
NNTP-Posting-Host: 206.10.54.166
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I just got djgpp with Rhide and allegro up and running and entered the
following code (see below). And all I come up with is a blank screen.
Am running Win98 on a PII 300 with a Graphics Blaster video card. This code
should work. Thanks
#include <allegro.h>

int main()
{
 allegro_init();
 install_keyboard();
 set_gfx_mode(GFX_VGA,320,200,0,0);
 textout_centre(screen,font,"Press Any Key.",160,100,255);
 readkey();
 return 0;
}



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019