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/