Mail Archives: djgpp/1997/02/23/14:08:18
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 -