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 ?
why the 0x08 didn't work ?
Thanks,
Shay
"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:24074@palm-dev-forum...
>
> > > > and i used :
> > > > ScrDisplayMode (scrDisplayModeSet, 0, 0, 0x8B, 0);
> > >
> > > You need to set only ONE bit. 0x8b is probably returning an error you
> > > are ignoring. Try just 0x08 (this requests 4bpp, not 8,4,2,and 1 at
> > > the same time).
>
> um.. take a look at the API specs.. the *fourth* parameter must
> be a "pointer" to a UInt32 - being a depth.
>
> i posted an example of this earlier..
>
> ---
> UInt32 depth = 4;
>
> WinDisplayMode(winDisplayModeSet, NULL, NULL, &depth, NULL);
> ---
>
> if you use an earlier SDK, substitute Win* with Scr* and win* with
> scr*.. the 3.5 SDK (from memory) just changed the name of this call.
>
> cheers
>
> // 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/