Hi,

Here below's the function I use to switch between tiny bitmaps.
What I need to do is switch between them every 1 second or so..

But when I do that, the Palm's performance becomes very sluggish.
How'd I improve it so that it doesn't slow down so much .

Thanks in advance.
Regards


/******************************************************************/

/* bmpShow()                                                                    */
/******************************************************************/

void bmpShow( Word wBitmapID, Word x, Word y)
{
        VoidHand hBitmap;
        
        hBitmap = DmGetResource (bitmapRsc, wBitmapID);
        
        if (hBitmap)
        {
                BitmapPtr pBitmap;
                
                pBitmap = (BitmapPtr) MemHandleLock (hBitmap);
                WinDrawBitmap (pBitmap, x, y);
                MemHandleUnlock(hBitmap);
                
                DmReleaseResource (hBitmap);
        }
        return;
}

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