www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/14:08:18

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro screws up my DOS font and some other things
Date: Sun, 23 Feb 1997 16:39:43 +0000
Organization: None
Distribution: world
Message-ID: <fpqUNhAPLHEzEwEk@talula.demon.co.uk>
References: <m0vxvtO-000S1nC AT natacha DOT inti DOT edu DOT ar> <330F310F DOT 7924 AT goucher DOT edu>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 38
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nikita Proskourine writes:
>Sometimes Allegro alters my DOS font for no apparent reason. When that
>happens, most graphics in my Allegro programs become either
>weird-colored or the whole screen is flickering and some garbage is

Does this happen with any of the Allegro test programs (if so, which?)
or just with your code?

Also, what graphics card do you have, and what resolution and driver are
you using? If it isn't UniVBE, try getting a copy of that and see if it
improves matters.

>0) and everything is back to normal. Doesn't Allegro change mode to text
>automatically when program ends? What is going on?

It should do, as long as you called allegro_init() at startup. This
means that there's probably a bug somewhere (whether in Allegro or in
your VESA driver remains to be seen :-)

>The thing I don't like about Allegro is that you can't really tell how
>many colors you have in a given mode. Can anyone give me a good pallete
>that I can use in my programs (I am using 640x480 mode) and have all
>colors (16?) available.

Whatever the graphics mode, you will always have exactly 256 colors to
play with (at some point in the future I'm planning to add truecolor
modes, which will give you a lot more, but for it's limited to 256).

Which set of 256 you choose is entirely up to you. You can create
whatever palette you like (either make one in a paint program and then
read it in from a PCX file or datafile, or define it in your code as an
array of RGB structure). After you select your palette, that is the set
of 256 colors that will be available to you...

/*
 *  Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
 *  Beauty is a French phonetic corruption of a short cloth neck ornament.
 */

- Raw text -


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