We are getting reports of poor contrast on our latest Memo PLUS and
ToDo PLUS programs, only on the Palm IIIxe. In order to handle gray
scale graphics, we put the Palm into 4 bit mode with a WinScreenMode
call. Things work fine on a Palm Vx loaded with OS 3.5, so it appears
to be somehow related to the hardware. However, we have not
specifically tested the Palm IIIxe and are mainly going by customer
reports of a change in contrast between our applications and others.

Has anyone heard of this problem?
Palm, do you know about the problem? 
Is there any way to support gray scale without the bad black and white
contrast problem in 4-bit mode? 

Here is how we are setting the screen depth:

Boolean UtilSetScreenToMaxDepth(ULong os, ULong *retNewDepth, ULong
*oldDepth)
{
   DWord supportedDepths;
   Boolean ret = false;
   ULong maxDepth;
   
   if (os >= version35) {
      
      WinScreenMode (winScreenModeGet, NULL, NULL, oldDepth, NULL);
      WinScreenMode (winScreenModeGetSupportedDepths, NULL, NULL,
&supportedDepths, NULL);
      
      // supportedDepths is some wierd bit field thing
      maxDepth = 32;
      while (!(0x80000000L & supportedDepths)) {
         maxDepth --;
         supportedDepths <<= 1;
      }

      if (maxDepth > *oldDepth) {
         WinScreenMode (winScreenModeSet, NULL, NULL, &maxDepth, NULL);
         *retNewDepth = maxDepth;
         ret = true;
      }     
   }  
   
   return ret;
} /* UtilSetScreenToMaxDepth */


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to