wined3d: Fix a destination flipping bug using the destination rectangle.
This commit is contained in:
parent
342c6c6de5
commit
334fea7d79
|
@ -3967,10 +3967,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
|
||||||
srect.y2 = Src->currentDesc.Height;
|
srect.y2 = Src->currentDesc.Height;
|
||||||
upsideDown = FALSE;
|
upsideDown = FALSE;
|
||||||
}
|
}
|
||||||
if(rect.x1 > rect.x2) {
|
if(rect.y1 > rect.y2) {
|
||||||
UINT tmp = rect.x2;
|
UINT tmp = rect.y2;
|
||||||
rect.x2 = rect.x1;
|
rect.y2 = rect.y1;
|
||||||
rect.x1 = tmp;
|
rect.y1 = tmp;
|
||||||
upsideDown = !upsideDown;
|
upsideDown = !upsideDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue