wined3d: Fix a destination flipping bug using the destination rectangle.
authorRoderick Colenbrander <thunderbird2k@gmail.com>
Mon, 29 Mar 2010 11:35:35 +0000 (13:35 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 30 Mar 2010 12:10:37 +0000 (14:10 +0200)
dlls/wined3d/surface.c

index 9d1e80479815a7f37d7aad3ef50408c246bb8281..48039640f32355f85999c59ce78b4492f77cb2d1 100644 (file)
@@ -3967,10 +3967,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
             srect.y2 = Src->currentDesc.Height;
             upsideDown = FALSE;
         }
-        if(rect.x1 > rect.x2) {
-            UINT tmp = rect.x2;
-            rect.x2 = rect.x1;
-            rect.x1 = tmp;
+        if(rect.y1 > rect.y2) {
+            UINT tmp = rect.y2;
+            rect.y2 = rect.y1;
+            rect.y1 = tmp;
             upsideDown = !upsideDown;
         }