delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/13/08:16:34

Date: Wed, 13 Jul 94 08:36:10 EST
From: acmq AT alpha DOT coe DOT ufrj DOT br (Antonio Carlos Moreirao de Queiroz)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Interrupt 33 and colors

Hi,

About my problem with colors corrupted by mouse operations, DJ said:

> Did you allocate the colors?  You can't assume that the color palette
> is set up correctly when you initialize graphics mode.  Also, make
> sure you're not using go32 1.10.

I am calling the bcc2grx function "initgraph", that I assume is allocating
the colors correctly. What I find strange is that the colors become confused
only after I press a mouse button, and my program erases the mouse and draws.
I am suspecting of something related to the functions that the bcc2grx package
uses to return the black and white colors, since I am not using them, but
assuming constants. Is it possible that the mouse driver is changing the
palette and changing the meaning of the colors 0 and 15 (16 colors mode)?
Is the palette changed by some grx or bcc2grx function that does not affect
directly the palette?
Note that I am using only the int 33 functions to access the mouse.
I am using the latest version of go32.

Thanks,

Antonio Carlos M. de Queiroz


- Raw text -


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