delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/22:12:59

From: JustinFL <justinfl AT netzero DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro Graphics Problem
Date: Tue, 17 Aug 1999 00:29:11 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
Lines: 24
Message-ID: <7paacd$ij$1@nnrp1.deja.com>
NNTP-Posting-Host: 171.208.10.31
X-Article-Creation-Date: Tue Aug 17 00:29:11 1999 GMT
X-Http-User-Agent: Mozilla/4.61 [en] (Win95; I)
X-Http-Proxy: 1.0 x29.deja.com:80 (Squid/1.1.22) for client 171.208.10.31
X-MyDeja-Info: XMYDJUIDjustinfl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie 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 -


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