Roderick Colenbrander : wined3d: Fix a destination flipping bug using the destination rectangle.
Module: wine Branch: master Commit: 334fea7d795af840c8f4b2a4c8f295f3bbc09211 URL: http://source.winehq.org/git/wine.git/?a=commit;h=334fea7d795af840c8f4b2a4c8... Author: Roderick Colenbrander <thunderbird2k(a)gmail.com> Date: Mon Mar 29 13:35:35 2010 +0200 wined3d: Fix a destination flipping bug using the destination rectangle. --- dlls/wined3d/surface.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 9d1e804..4803964 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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; }
participants (1)
-
Alexandre Julliard