[RESEND] wined3d: Height of rectangle is bottom - top,
not vice versa
Fabian Bieler
der.fabe at gmx.net
Fri Mar 9 21:18:37 CST 2007
-------------- next part --------------
From 6065eb4864921039fc59c70b945de8158ea128d0 Mon Sep 17 00:00:00 2001
From: Fabian Bieler <der.fabe at gmx.net>
Date: Sat, 10 Mar 2007 04:16:44 +0100
Subject: [PATCH] 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 0998eec..cff0f19 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4728,7 +4728,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;
--
1.4.4.1
More information about the wine-patches
mailing list