From: "Al Morgan" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Graphics Problem Date: Tue, 17 Aug 1999 03:58:31 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 38 Message-ID: References: <7paacd$ij$1 AT nnrp1 DOT deja DOT com> X-Complaints-To: newsabuse AT supernews DOT com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com The solution is quite simple (as most programming bugs are). 320x200 res. graphics mode, but your writing to y-position 255! That's way off the screen. Try textout_centre(screen,font,"Ready. Beep.",160,100,100); instead JustinFL wrote in message news:7paacd$ij$1 AT nnrp1 DOT deja DOT com... > I got this program off the web as a simple test of graphics using > allegro. This program is supposed to put "Ready. Beep." in the center > of the screen. All this program does is blank the screen and wait for a > keypress. What am i doing wrong, or what could be wrong. I compiled it > using > gcc gfx_init.cpp -o gfx_init.exe -lalleg > no errors are produced when i do this....this is the program: > > > #include > > int main() > { > allegro_init(); > install_keyboard(); > set_gfx_mode(GFX_VGA,320,200,0,0); > textout_centre(screen,font,"Ready. Beep.",160,100,255); > readkey(); > return 0; > } > > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't.