What version of PalmOS are you using? 3.1 by any chance (this is the OS
the original Palm V series shipped with)?

In which case I think you'll find WinDrawBitmap doesn't support 4bpp (16
grayscale) bitmaps in the OS. I believe PalmOS 3.3 is the first PalmOS
to support all the display modes the hardware is capable of displaying.
Of course the documentation doesn't actually mention this...but this is
why querying ScrDisplayMode gives you a supported values of '0x03'.

Stuart Nicholson
Programmer
Firepad Inc

-----Original Message-----
From: Shay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 14, 2000 11:28 AM
To: Palm Developer Forum
Subject: Re: 4 bit error on palm v


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:24097@palm-dev-forum...
>
> > 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 Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
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