www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/17/13:46:44

From: arg AT whangomatic DOT freeserve DOT co DOT uk (Andrew R. Gillett)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Graphics Problem
Date: Tue, 17 Aug 1999 15:25:48 +0100
Organization: www.release-dates.co.uk
Lines: 29
Message-ID: <MPG.12237f97108ee81398b053@news.freeserve.net>
References: <7paacd$ij$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: modem-39.name3.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 934899993 27707 62.136.161.39 (17 Aug 1999 14:26:33 GMT)
NNTP-Posting-Date: 17 Aug 1999 14:26:33 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: MicroPlanet Gravity v2.12
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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