Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
62c3bce8
Commit
62c3bce8
authored
Jul 01, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use InflateRect() instead of open coding it.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d534a6e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
uitools.c
dlls/user32/uitools.c
+2
-11
No files found.
dlls/user32/uitools.c
View file @
62c3bce8
...
...
@@ -706,12 +706,7 @@ static BOOL UITOOLS95_DFC_ButtonPush(HDC dc, LPRECT r, UINT uFlags)
/* Adjust rectangle if asked */
if
(
uFlags
&
DFCS_ADJUSTRECT
)
{
r
->
left
+=
2
;
r
->
right
-=
2
;
r
->
top
+=
2
;
r
->
bottom
-=
2
;
}
InflateRect
(
r
,
-
2
,
-
2
);
return
TRUE
;
}
...
...
@@ -832,11 +827,7 @@ static BOOL UITOOLS95_DFC_ButtonRadio(HDC dc, LPRECT r, UINT uFlags)
SelectObject
(
dc
,
GetSysColorBrush
(
COLOR_BTNSHADOW
));
Pie
(
dc
,
myr
.
left
,
myr
.
top
,
myr
.
right
+
1
,
myr
.
bottom
+
1
,
myr
.
right
+
1
,
myr
.
top
,
myr
.
left
-
1
,
myr
.
bottom
);
myr
.
left
+=
BorderShrink
;
myr
.
right
-=
BorderShrink
;
myr
.
top
+=
BorderShrink
;
myr
.
bottom
-=
BorderShrink
;
InflateRect
(
&
myr
,
-
BorderShrink
,
-
BorderShrink
);
SelectObject
(
dc
,
SYSCOLOR_GetPen
(
COLOR_3DLIGHT
));
SelectObject
(
dc
,
GetSysColorBrush
(
COLOR_3DLIGHT
));
Pie
(
dc
,
myr
.
left
,
myr
.
top
,
myr
.
right
+
1
,
myr
.
bottom
+
1
,
myr
.
left
-
1
,
myr
.
bottom
,
myr
.
right
+
1
,
myr
.
top
);
...
...
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