Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32shape.c @ 4858:10b96029e734
Moved the +1 to mostly eliminate the visual artifact.
author | egottlieb |
---|---|
date | Mon, 16 Aug 2010 10:48:54 -0400 |
parents | 1ff5dfaafdc8 |
children |
comparison
equal
deleted
inserted
replaced
4857:579dabb141ea | 4858:10b96029e734 |
---|---|
47 void | 47 void |
48 CombineRectRegions(SDL_ShapeTree* node,void* closure) { | 48 CombineRectRegions(SDL_ShapeTree* node,void* closure) { |
49 HRGN mask_region = *((HRGN*)closure),temp_region = NULL; | 49 HRGN mask_region = *((HRGN*)closure),temp_region = NULL; |
50 if(node->kind == OpaqueShape) { | 50 if(node->kind == OpaqueShape) { |
51 //Win32 API regions exclude their outline, so we widen the region by one pixel in each direction to include the real outline. | 51 //Win32 API regions exclude their outline, so we widen the region by one pixel in each direction to include the real outline. |
52 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); | 52 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); |
53 if(mask_region != NULL) { | 53 if(mask_region != NULL) { |
54 CombineRgn(mask_region,mask_region,temp_region,RGN_OR); | 54 CombineRgn(mask_region,mask_region,temp_region,RGN_OR); |
55 DeleteObject(temp_region); | 55 DeleteObject(temp_region); |
56 } | 56 } |
57 else | 57 else |