fabianokm
06-05-2004, 02:55 PM
I seem to have a problem when I try to mirror a TDirectDrawSurface.
Suppose I want to draw an image that's in Rect(0, 0, 100, 100). If I do
something like this...
DXDraw1.Surface.Draw(x, y, Rect(100, 0, 0, 100), Surf, true);
... it works fine.
However, if the image is anywhere else in the surface - let's say
Rect(340, 45, 440, 145) -, it mirrors another part of the surface that
isn't the one I want.
So, it seems to work fine only if the image is at (0, 0).
Anyone else had problems with that, too? How to fix it?
Suppose I want to draw an image that's in Rect(0, 0, 100, 100). If I do
something like this...
DXDraw1.Surface.Draw(x, y, Rect(100, 0, 0, 100), Surf, true);
... it works fine.
However, if the image is anywhere else in the surface - let's say
Rect(340, 45, 440, 145) -, it mirrors another part of the surface that
isn't the one I want.
So, it seems to work fine only if the image is at (0, 0).
Anyone else had problems with that, too? How to fix it?