Mail Archives: djgpp/1997/02/22/23:13:59
Nikita Proskourine (nproskou AT goucher DOT edu) wrote:
: 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
: displayed. Then, I run the program with set_gfx_mode(GFX_TEXT, 0, 0, 0,
: 0) and everything is back to normal. Doesn't Allegro change mode to text
: automatically when program ends? What is going on?
Ugh... sounds like a video card problem. Unless anyone else gives more
specific advice, I'd suggest you do the following:
Try some different video modes, try specifying your video adaptor rather
than letting it auto-detect, try specifying some other (wrong) video
adaptors, try running something like UniVBE and seeing if this helps. If
you're running Windows 95, try in DOS mode, DOS box or on a previous
version of DOS, and see if it makes any difference. You can test most of
these using the sample programs that come with Allegro.
If none of this works, perhaps you could give some more information, such
as your make of video card, and, if this bug is reproduceable, the
conditions which cause it.
: 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.
Allegro only provides 256 colour modes at the moment, so whatever mode
you're using it's a 256 colour one.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -