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

This commit is contained in:
Fabian Bieler 2007-03-10 04:16:44 +01:00 committed by Alexandre Julliard
parent 0f7a3811b4
commit a2808903b1
1 changed files with 1 additions and 1 deletions

View File

@ -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;