> > WinCopyRectangle (sprite->window, NULL, &r, 64, 128, winPaint);
> WinCopyRectangle(sprite->window, WinGetDisplayWindow(), > &r, 64, 128, winPaint); According to the documentation, those are both functionally identical. Also note that the above does not work, while the following /does/... RctSetRectangle (&r, 0, 0, 10, 12); WinCopyRectangle (NULL, NULL, &r, 64, 128, winPaint); (From http://www.palmos.com/dev/support/docs/palmos/Window.html#1196062) dstWin - Window to which the rectangle is copied. If NULL, use the draw window. > may help if you specify the destination window dont you think? > cube3d/burning do double buffering and come with sources at > www.ardiri.com I've examined cube3d - it gave me some interesting ideas in regards to the help renderer... but I digress. It may also be useful if I give some more information - I'm creating the window like so: SpritePtr SprLoadSprite(DmResID id) { SpritePtr sprite; MemHandle spriteData, spriteBitmap; Err error; WinHandle oldWind; // ... // Load the frames and create an offscreen window. // The frames are organized vertically, FYI. spriteBitmap = DmGetResource (sprResTSpriteBitmap, id); if ( !spriteBitmap ) { SpriteLastError = DmGetLastErr(); PrvRemoveSprite(sprite); return NULL; } sprite->bitmap = MemHandleLock (spriteBitmap); sprite->window = WinCreateBitmapWindow (sprite->bitmap, &error); ErrFatalDisplayIf (error, "unable to allocate window"); return sprite; } Should I be doing something to the window to "enable" it? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
