[comp.sys.mac.programmer] WEIRD Hilitemode problem in System 7...

rdd@cactus.org (Robert Dorsett) (04/22/91)

I am encountering a pretty strange problem with 7b4.  I have a program which
attempts to draw colored text on an arbitrarily-colored background (e.g.,
red on black).  I am using *hilitemode*, since (a) I ultimately wish to erase 
the text again, and (b) there are a few lined objects in the background, which 
may intersect the text.  To set up the transfer characteristics, I use:

PmBackColor(thebackcolor);
PmForeColor(theforecolor);    (this is necessary to take care of another bug)
PmHiliteColor(theforecolor);
TextMode(hilitemode);
DrawText(thetext);
	
This works great in 6.0.7 and earlier.  In 7b4, however, I get a "box" around
my text.  The actual text pixels show up black, over a solid field of
the color the *character pixels* were supposed to appear as.  The field tends
to match the combined size of the bitmaps the characters are being drawn from.

I've had a similar problem copying small, 1-bit offscreen bitmaps to the
screen, also using hilitemode.  The bitmaps get transferred, but appear
as black, in a solid "field" of color that matches the destination rectangle
dimensions.

This smells a lot like a System 7 bug to me, but I'm hoping someone has an 
effective work-around.




---
Robert Dorsett
Internet: rdd@cactus.org
UUCP: ...cs.utexas.edu!cactus.org!rdd