changeset 4858:10b96029e734

Moved the +1 to mostly eliminate the visual artifact.
author egottlieb
date Mon, 16 Aug 2010 10:48:54 -0400
parents 579dabb141ea
children 91f4d4d5c395
files src/video/win32/SDL_win32shape.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);