www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/22/23:13:59

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro screws up my DOS font and some other things
Date: 23 Feb 1997 01:58:03 GMT
Organization: Oxford University
Lines: 33
Message-ID: <5eo87b$74e@news.ox.ac.uk>
References: <m0vxvtO-000S1nC AT natacha DOT inti DOT edu DOT ar> <330F310F DOT 7924 AT goucher DOT edu>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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