Page 1 of 1

PostPosted: Tue Apr 25, 2006 6:49 pm
by mgreen
I'm trying to get a crosshair over an image and have the following fragment:

Line(1<<16+1,x,0+18,x,139+18);
Line(1<<16+1,0,y+18,92,y+18);

When this executes, I get a white crosshair, not a black one as expected.
I checked the foreground color and it is set to black in the current depth
(using SetFore and PickColor for testing). What am I missing?

PostPosted: Tue Apr 25, 2006 11:09 pm
by jstadolnik
The first arg of your Line function call should be (1<<16)+1, rather than 1<<16+1. The later is actualy equivalent to 1<<17 as the "+" has higher operator precedence than "<<".

-Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Wed Apr 26, 2006 2:25 pm
by mgreen
Thank you. That worked great. I was sure it was something simple I missed. Mike