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
c510c4d9
Commit
c510c4d9
authored
Aug 16, 2010
by
egottlieb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the +1 to mostly eliminate the visual artifact.
parent
781d1306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
SDL_win32shape.c
src/video/win32/SDL_win32shape.c
+1
-1
No files found.
src/video/win32/SDL_win32shape.c
View file @
c510c4d9
...
@@ -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
);
...
...
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