From becf8dc82829b403068d61908c77c98a406aea3a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 20 May 2010 09:12:18 +0200 Subject: [PATCH] wined3d: Check for a destination clipper in IWineD3DBaseSurfaceImpl_Blt(). This check was there in the original ddraw code, but apparently got lost during the ddraw rewrite in 2006. --- dlls/wined3d/surface_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c index d7528279a06..9778c81d237 100644 --- a/dlls/wined3d/surface_base.c +++ b/dlls/wined3d/surface_base.c @@ -1009,7 +1009,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_Blt(IWineD3DSurface *iface, const RECT *D /* For the Destination rect, it can be out of bounds on the condition that a clipper * is set for the given surface. */ - if ((/*This->clipper == NULL*/ TRUE) && (DestRect) && + if (!This->clipper && DestRect && ((DestRect->bottom > This->currentDesc.Height)||(DestRect->bottom < 0) || (DestRect->top > This->currentDesc.Height)||(DestRect->top < 0) || (DestRect->left > This->currentDesc.Width) ||(DestRect->left < 0) ||