Moved the +1 to mostly eliminate the visual artifact.
authoregottlieb
Mon, 16 Aug 2010 10:48:54 -0400
changeset 4858 10b96029e734
parent 4857 579dabb141ea
child 4859 91f4d4d5c395
Moved the +1 to mostly eliminate the visual artifact.
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);