I can draw out of bounds in positive space, that's ok. I even try dumping to a genericFormat'd windowbuffer off to the side -- but the WinDrawBitmap still throws an error that there are INVALID PARAMS. I checked the original Screen Driver in version 3.1 and its got the same parameters as the 3.5 version.
What I am trying to do is scroll a large bitmap of a city. Its really bugging me, I can get the code to work on OS3.3 and above -- but as soon as an older palm tries to draw a negative coord it causes the program to crash with Invalid params. Wolfgang Bochar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max Bian Sent: Saturday, November 17, 2001 5:59 PM To: Palm Developer Forum Subject: Re: Bitmap drawing and OS3.1 NEgative Coords Problem 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
