Aaron Ardiri writes:
>Douglas I. Anderson writes:
>> An interesting solution to your problem is to draw to an offscreen window
>> and then use:
>>
>> WinCopyRectangle (WinHandle srcWin, WinHandle dstWin,
>> RectanglePtr srcRect, SWord destX,
>> SWord destY, ScrOperation mode)
>
> i was using this in all my games.. but however, creating offscreen
> windows is not a good thing to do when it comes to OS 3.5 :)) i got
> a nice little email from palm saying i had 40+ windows :))
You had one teeny tiny off-screen window for each little sprite?
> i guess this solution works for anything before 3.5 :) however, with
> the more stricter memory management on 3.5 - we may need to consider
> alternatives.. such as custom BltBlt routines or masking.. :(
So, if this is a problem, you can use one bigger off-screen window with
all your sprites sprinkled across it and use the srcRect parameter to
select which image in which area of the off-screen window to copy.
John :)) :) :( (((:)) ((-o :::))__ 8-) +-:) ;-* ")) :(