Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Moved the +1 to mostly eliminate the visual artifact.

  • Loading branch information
egottlieb committed Aug 16, 2010
1 parent 9179579 commit 3f351083f4bf3767f5c917f1c0e3f24e7d78cbe4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 3f35108

Please sign in to comment.