From c510c4d902295e122b92c4d6183b55e14f553163 Mon Sep 17 00:00:00 2001 From: egottlieb Date: Mon, 16 Aug 2010 10:48:54 -0400 Subject: [PATCH] Moved the +1 to mostly eliminate the visual artifact. --- src/video/win32/SDL_win32shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/win32/SDL_win32shape.c b/src/video/win32/SDL_win32shape.c index b649bb09f..68350a572 100644 --- a/src/video/win32/SDL_win32shape.c +++ b/src/video/win32/SDL_win32shape.c @@ -49,7 +49,7 @@ CombineRectRegions(SDL_ShapeTree* node,void* closure) { HRGN mask_region = *((HRGN*)closure),temp_region = NULL; if(node->kind == OpaqueShape) { //Win32 API regions exclude their outline, so we widen the region by one pixel in each direction to include the real outline. - temp_region = CreateRectRgn(node->data.shape.x - 1,node->data.shape.y - 1,node->data.shape.x + node->data.shape.w,node->data.shape.y + node->data.shape.h); + temp_region = CreateRectRgn(node->data.shape.x,node->data.shape.y,node->data.shape.x + node->data.shape.w + 1,node->data.shape.y + node->data.shape.h + 1); if(mask_region != NULL) { CombineRgn(mask_region,mask_region,temp_region,RGN_OR); DeleteObject(temp_region);