wined3d: Fix a destination flipping bug using the destination rectangle.

This commit is contained in:
Roderick Colenbrander 2010-03-29 13:35:35 +02:00 committed by Alexandre Julliard
parent 342c6c6de5
commit 334fea7d79
1 changed files with 4 additions and 4 deletions

View 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;
}