* Create the 4 bit Bitmap/icon in constructor 

    * Name the bitmap/icon starting with /-2/ [e.g /-2/Splash]

    * Add this, preferably in AppStart()

        UInt32 scrDepth = 2;
        UInt32 scrWidth = 160;
        UInt32 scrHeight = 160;

        WinScreenMode(winScreenModeSet,&scrWidth,&scrHeight,&scrDepth,0);
        FtrSet(sysFtrCreator,sysFtrNumDisplayDepth,scrDepth);

   This way, it works for me!

   Hope this might help you..

Best Regards,
Prakash

PS: Other possible strange prefixes

     /-2/    A grayscale image with 2 bits per pixel
     /-1/    A black and white image with 1 bit per pixel
     /-c/    Compresses the bitmap resource to save memory
     /-c-2/  Compresses the resource and displays it as a 2-bit grayscale image
     /-c-1/  Compresses the resource and displays it as a black and white image

 




--- Todd Walk <[EMAIL PROTECTED]> wrote:
> The monochrome devices seem to start in 1-bit, but I
> need to change to 4-bit.
> 
> After looking again at Aaron's toggle program, I still
> don't really understand how this works.
> 
> WinScreenMode as used below doesn't seem to do anything.
> -----------------------------------------------------------
>   tmpdepthP=4;
>   WinScreenMode(winScreenModeSet,NULL,NULL,&tmpdepthP,NULL);
> -----------------------------------------------------------
> 
> From toggle, I get the below.  (Where is this documented?)
> This make it so the *second* time I run, I get 4-bits.
> (Changes the depth after the program exits.)
> -----------------------------------------------------------
>   FtrSet(sysFtrCreator, sysFtrNumDisplayDepth, 4);
> -----------------------------------------------------------
> 
> So how do I change to and from 1-bit and 4-bit?
> 
> Todd.
> 
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to