Mail Archives: djgpp/1999/08/17/09:19:02
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 <justinfl AT netzero DOT net> 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 <allegro.h>
>
> 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.
- Raw text -