When I try to draw things out of bounds, POSE will warn me and tell me to use
FrmHideObject instead of drawing things out of bounds to hide it.
Any reason you have to use negative cords?
Max
--- Wolfgang Bochar <[EMAIL PROTECTED]> wrote:
> I am having a problem with a Bitmap drawing function. It works well on OS
> 3.3 and above but when I use it on 3.1, I get some unexpected results. The
> function will draw the bitmap as long as its in a positive coordinate, the
> moment I move to a negative coordinate the throws up and error saying
> "scrDriverNew.c INVALID PARAMS". Here is my code, any helpful thoughts on
> the subject would be appreciated. Is there a work around for this?
>
>
> static void DrawBitmap(Coord x, Coord y, UInt16 id)
> {
> MemHandle h;
> BitmapPtr p;
>
> h = DmGet1Resource('Tbmp', id);
> if (h != NULL)
> {
> p = (BitmapPtr) MemHandleLock(h);
> WinDrawBitmap(p, x, y);
> MemHandleUnlock(h);
> DmReleaseResource(h);
> p = NULL;
> }
> }
>
>
>
> Wolfgang Bochar
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/