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
f22ff403
Commit
f22ff403
authored
Sep 03, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Sep 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a little positioning bug with the checkbox.
parent
48c6eb55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
button.c
controls/button.c
+4
-1
No files found.
controls/button.c
View file @
f22ff403
...
@@ -681,7 +681,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
...
@@ -681,7 +681,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
{
{
HDC
hMemDC
=
CreateCompatibleDC
(
hDC
);
HDC
hMemDC
=
CreateCompatibleDC
(
hDC
);
int
x
=
0
,
y
=
0
;
int
x
=
0
,
y
=
0
;
delta
=
(
rbox
.
bottom
-
rbox
.
top
-
checkBoxHeight
)
>>
1
;
delta
=
(
rbox
.
bottom
-
rbox
.
top
-
checkBoxHeight
)
/
2
;
/* Check in case the client area is smaller than the checkbox bitmap */
if
(
delta
<
0
)
delta
=
0
;
if
(
action
==
ODA_SELECT
)
FillRect
(
hDC
,
&
rbox
,
hBrush
);
if
(
action
==
ODA_SELECT
)
FillRect
(
hDC
,
&
rbox
,
hBrush
);
else
FillRect
(
hDC
,
&
client
,
hBrush
);
else
FillRect
(
hDC
,
&
client
,
hBrush
);
...
...
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