Commit c510c4d9 authored by egottlieb's avatar egottlieb

Moved the +1 to mostly eliminate the visual artifact.

parent 781d1306
...@@ -49,7 +49,7 @@ CombineRectRegions(SDL_ShapeTree* node,void* closure) { ...@@ -49,7 +49,7 @@ CombineRectRegions(SDL_ShapeTree* node,void* closure) {
HRGN mask_region = *((HRGN*)closure),temp_region = NULL; HRGN mask_region = *((HRGN*)closure),temp_region = NULL;
if(node->kind == OpaqueShape) { 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. //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) { if(mask_region != NULL) {
CombineRgn(mask_region,mask_region,temp_region,RGN_OR); CombineRgn(mask_region,mask_region,temp_region,RGN_OR);
DeleteObject(temp_region); DeleteObject(temp_region);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment