Mail Archives: djgpp/1999/08/17/13:46:44
In comp.os.msdos.djgpp, JustinFL wrote:
> 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;
> }
Might be an idea to check that colour 255 actually contains a useful
palette entry.
--
Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage
Abducensnerve
- Raw text -