[1/2] wined3d: Height of rectangle is bottom - top, not vice versa
Fabian Bieler
der.fabe at gmx.net
Fri Mar 9 04:48:21 CST 2007
-------------- next part --------------
From 16854c6b686bcb2f172a9a818d0c1aaba9765f2d Mon Sep 17 00:00:00 2001
From: Fabian Bieler <der.fabe at gmx.net>
Date: Fri, 9 Mar 2007 11:37:08 +0100
Subject: [PATCH] [1/2] 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