# HG changeset patch # User egottlieb # Date 1281970134 14400 # Node ID 10b96029e734d803fd6a8a066fecac5afdfdf8af # Parent 579dabb141ea4006da7d0e5ceded697e0295953f Moved the +1 to mostly eliminate the visual artifact. diff -r 579dabb141ea -r 10b96029e734 src/video/win32/SDL_win32shape.c --- a/src/video/win32/SDL_win32shape.c Mon Aug 16 09:55:35 2010 -0400 +++ b/src/video/win32/SDL_win32shape.c Mon Aug 16 10:48:54 2010 -0400 @@ -49,7 +49,7 @@ 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);