PowerPlant application under 10.3 - sBitDepth problem

PowerPlant application under 10.3 - sBitDepth problem

Post by Kent Soren » Fri, 10 Oct 2003 11:45:13


My application is having some problems under 10.3. Specifically
sBitDepth is not getting set correctly. It is always 0. When a routine
of mine does a GetBitDepth it gets 0 and takes the black and white path.

This did not happen on 10.2.6

I have searched PowerPlant for references to sBitDepth and from what I
see it is supposed to be 0 when you're outside a device loop.

So it appears that the problem is that LView::Draw does the branch that
simply iterates through the subpanes, calling drag and not the device
loop branch.

This may be because UDrawingUtils::IsPortBuffered(GetMacPort()) always
return true now. Is that correct ?

Yes, I am an ADC member, and I am not discussing OS X 10.3. I am
discussing my own application.

Kent
 
 
 

PowerPlant application under 10.3 - sBitDepth problem

Post by Gregory Do » Fri, 10 Oct 2003 15:48:10

In article < XXXX@XXXXX.COM >,



That's right. Black and White is a bit depth of 1. As you discovered,
bit depth 0 indicates that you are not in a device loop.


Windows are always buffered on OS X.

-- Greg

 
 
 

PowerPlant application under 10.3 - sBitDepth problem

Post by Kent Soren » Sat, 11 Oct 2003 07:48:26

> > This may be because UDrawingUtils::IsPortBuffered(GetMacPort()) always

Thanks for the reply. Yes, I know. The problem is that this behavior is
new under 10.3. My application certainly did not go down the b&w drawing
paths under 10.2.6 so something has changed externally to it.

Kent