according to the reference PDF of the palm - ScrDisplayMode - This function indicates support for 4-bit drawing by returning a value of 0x08, Support for bit depths of 2 and 1 is indicated by a return value of 0x03.
so for some reason, when i type 4 (or 0x04) it's ok, but when i type 0x08 it's not. and i need support for 1,2 and 4 bits. and when i draw my bitmap, the rest of the screen goes blank. any idea ? i'm creating the bitmap myself. shay "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > thanks Aaron, at first, i wanted just to reply to you saying that i know > > that the method needs a pointer, because the compiler will give me an error, > > and i already done it with a pointer using : > > DWord depth = 0x08; > > DWordPtr depthP = &depth; > > > > BUT, i tried it, and it works, but the problem wasn't on the pointer, it was > > on the 0x08. > > when i wrote "4" it works. > > now i have two problems : > > 1) probably with freeing the memory, but i'll look at it myself. > > 2) when i draw my bitmap, the rest of the screen went blank, and when i used > > 1 bit bitmap, its ok, any ideas ? > > i use 1, 2 and 4bpp bitmaps in my code.. no problems :) how are you > generating the bitmaps? using PilRC? > > > why the 0x08 didn't work ? > > 0x08 = 8 = 8 bpp = 256 colors :) > > if you want 4 bit grayscale, then.. you need to use "4" :) > > // az > [EMAIL PROTECTED] > http://www.ardiri.com/ <--- free games! > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
