Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
b109f619
Commit
b109f619
authored
Aug 16, 2010
by
egottlieb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless debugging code.
parent
61aae3b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
SDL_win32shape.c
src/video/win32/SDL_win32shape.c
+1
-6
No files found.
src/video/win32/SDL_win32shape.c
View file @
b109f619
...
@@ -46,15 +46,10 @@ Win32_CreateShaper(SDL_Window * window) {
...
@@ -46,15 +46,10 @@ Win32_CreateShaper(SDL_Window * window) {
void
void
CombineRectRegions
(
SDL_ShapeTree
*
node
,
void
*
closure
)
{
CombineRectRegions
(
SDL_ShapeTree
*
node
,
void
*
closure
)
{
char
debug_str
[
200
];
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.
/* sprintf_s(&debug_str[0],200,"x: %u y: %u, x+w: %u, y+h: %u\n",
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
);
node->data.shape.x,node->data.shape.y,
node->data.shape.x + node->data.shape.w,node->data.shape.y + node->data.shape.h);*/
//OutputDebugStringA(debug_str);
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
);
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment