delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/28/00:33:38

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problems with the mouse (and fonts) in Allegro
Date: Thu, 25 Sep 1997 19:31:15 +0100
Organization: None
Distribution: world
Message-ID: <mP76XFAz3qK0Ew9M@talula.demon.co.uk>
References: <Pine DOT GSO DOT 3 DOT 95 DOT 970924232442 DOT 366A-100000 AT catbert DOT ucdavis DOT edu>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mike Darrett writes:
>When you use the mouse to select the video mode for set_gfx_mode(), and 
>later switch to a new resolution, the mouse pointer is black. 

That's because you don't set the palette after changing the graphics
mode, so you get whatever colors your BIOS sets by default. It's not a
good idea to count on these always being the same: you should set the
palette yourself to whatever colors you are going to use...

>Another thiong: If you do not use the mouse to select the video
>mode, the mouse ptr is black AND the text background is also black.

You need to call text_mode() to set the drawing mode you want. After
displaying the mode selector, the text mode will be set to whatever was
used by the most recent GUI object to be displayed, which could be just
about anything...


--
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