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
60fad890
Commit
60fad890
authored
Apr 27, 2018
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Apr 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix checkbox wrong box alignment with BS_VCENTER.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6654dbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
button.c
dlls/user32/button.c
+2
-2
No files found.
dlls/user32/button.c
View file @
60fad890
...
...
@@ -902,14 +902,14 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
/* rbox must have the correct height */
delta
=
rbox
.
bottom
-
rbox
.
top
-
checkBoxHeight
;
if
(
style
&
BS_TOP
)
{
if
(
(
style
&
BS_VCENTER
)
==
BS_TOP
)
{
if
(
delta
>
0
)
{
rbox
.
bottom
=
rbox
.
top
+
checkBoxHeight
;
}
else
{
rbox
.
top
-=
-
delta
/
2
+
1
;
rbox
.
bottom
=
rbox
.
top
+
checkBoxHeight
;
}
}
else
if
(
style
&
BS_BOTTOM
)
{
}
else
if
(
(
style
&
BS_VCENTER
)
==
BS_BOTTOM
)
{
if
(
delta
>
0
)
{
rbox
.
top
=
rbox
.
bottom
-
checkBoxHeight
;
}
else
{
...
...
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