I am using the DoubleBuffer property of the canvas when my program runs in Windows. Problem is, it looses its transparency which removes the background image behind it. I need to grab the portion of the background image that is being discarded and redraw it where is needs to go.
The canvas has the following properties:
The background image is 1024 x 768.
The background image is stored in variable bgpic and the variable that controls the canvas image is imgTmp(2) which is located in the Paint event of that canvas.
I had an example project that showed me what to do but I can no longer find it.
Any help is appreciated.
EDIT: I finally got it.
In the paint event of the Canvas, I used the following code:
If index = 2 and TargetWin32 then
This way if only fires if the game is being run on Windows since Mac OS X does not require the DoubleBuffer on.