Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32shape.c @ 4854:661cb2f7c22a
Removed useless debugging code.
author | egottlieb |
---|---|
date | Sun, 15 Aug 2010 22:03:38 -0400 |
parents | c19c729eb201 |
children | 1ff5dfaafdc8 |
comparison
equal
deleted
inserted
replaced
4853:f7cde99bf66a | 4854:661cb2f7c22a |
---|---|
44 return result; | 44 return result; |
45 } | 45 } |
46 | 46 |
47 void | 47 void |
48 CombineRectRegions(SDL_ShapeTree* node,void* closure) { | 48 CombineRectRegions(SDL_ShapeTree* node,void* closure) { |
49 char debug_str[200]; | |
50 HRGN mask_region = *((HRGN*)closure),temp_region = NULL; | 49 HRGN mask_region = *((HRGN*)closure),temp_region = NULL; |
51 if(node->kind == OpaqueShape) { | 50 if(node->kind == OpaqueShape) { |
52 //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. |
53 /* sprintf_s(&debug_str[0],200,"x: %u y: %u, x+w: %u, y+h: %u\n", | 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); |
54 node->data.shape.x,node->data.shape.y, | |
55 node->data.shape.x + node->data.shape.w,node->data.shape.y + node->data.shape.h);*/ | |
56 //OutputDebugStringA(debug_str); | |
57 temp_region = CreateRectRgn(node->data.shape.x - 1,node->data.shape.y - 1,node->data.shape.x + node->data.shape.w + 1,node->data.shape.y + node->data.shape.h + 1); | |
58 if(mask_region != NULL) { | 53 if(mask_region != NULL) { |
59 CombineRgn(mask_region,mask_region,temp_region,RGN_OR); | 54 CombineRgn(mask_region,mask_region,temp_region,RGN_OR); |
60 DeleteObject(temp_region); | 55 DeleteObject(temp_region); |
61 } | 56 } |
62 else | 57 else |