www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/05/15:00:48

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Truecolor Problems in Allegro 3.0
Date: Thu, 5 Feb 1998 19:15:21 +0000
Organization: None
Distribution: world
Message-ID: <tlJY9JAJ$g20Ew$3@talula.demon.co.uk>
References: <6bbbcg$ui$1 AT news4 DOT wt DOT net>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 23
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Berylium writes:
>allegro_init();
>set_color_depth(16);
>set_gfx_mode(GFX_AUTODETECT,640,480,0,0);

Check the return code from set_gfx_mode(). It is quite possible for this
to fail, if it doesn't like the mode you are trying to set.

>The program, when run, shows the most significant color in the bitmap,
>across the screen.

What VESA driver are you using? As mentioned in the Allegro FAQ, it is
very helpful if you include the output of the VESAINFO program when
asking about this kind of problem.

But anyway, if you aren't already using it, try getting a copy of UniVBE
from www.scitechsoft.com. That will fix most of the (very frequent!)
problems with shoddy manufacturer-supplied VESA implementations.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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