Fabian Bieler : wined3d: Height of rectangle is bottom - top, not vice versa.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 12 08:28:55 CDT 2007


Module: wine
Branch: master
Commit: a2808903b184be88c445173cd713a24f2f1ab58e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a2808903b184be88c445173cd713a24f2f1ab58e

Author: Fabian Bieler <der.fabe at gmx.net>
Date:   Sat Mar 10 04:16:44 2007 +0100

wined3d: Height of rectangle is bottom - top, not vice versa.

---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 13d0fa5..10b03bf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4755,7 +4755,7 @@ static HRESULT  WINAPI  IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
 
     /* this needs to be done in lines if the sourceRect != the sourceWidth */
     srcWidth   = pSourceRect ? pSourceRect->right - pSourceRect->left   : srcSurfaceWidth;
-    srcHeight  = pSourceRect ? pSourceRect->top   - pSourceRect->bottom : srcSurfaceHeight;
+    srcHeight  = pSourceRect ? pSourceRect->bottom - pSourceRect->top   : srcSurfaceHeight;
     srcLeft    = pSourceRect ? pSourceRect->left : 0;
     destLeft   = pDestPoint  ? pDestPoint->x : 0;
     destTop    = pDestPoint  ? pDestPoint->y : 0;




More information about the wine-cvs mailing list