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
523d8cee
Commit
523d8cee
authored
Oct 12, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make sure that focus_rect is always initialized.
parent
d5f2172c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
button.c
dlls/user32/button.c
+7
-6
No files found.
dlls/user32/button.c
View file @
523d8cee
...
...
@@ -826,15 +826,18 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
hOldBrush
=
SelectObject
(
hDC
,
GetSysColorBrush
(
COLOR_BTNFACE
));
oldBkMode
=
SetBkMode
(
hDC
,
TRANSPARENT
);
/* completely skip the drawing if only focus has changed */
if
(
action
==
ODA_FOCUS
)
goto
draw_focus
;
if
(
get_button_type
(
style
)
==
BS_DEFPUSHBUTTON
)
{
Rectangle
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
if
(
action
!=
ODA_FOCUS
)
Rectangle
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
InflateRect
(
&
rc
,
-
1
,
-
1
);
}
focus_rect
=
rc
;
/* completely skip the drawing if only focus has changed */
if
(
action
==
ODA_FOCUS
)
goto
draw_focus
;
uState
=
DFCS_BUTTONPUSH
|
DFCS_ADJUSTRECT
;
if
(
style
&
BS_FLAT
)
...
...
@@ -852,8 +855,6 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
DrawFrameControl
(
hDC
,
&
rc
,
DFC_BUTTON
,
uState
);
focus_rect
=
rc
;
/* draw button label */
r
=
rc
;
dtFlags
=
BUTTON_CalcLabelRect
(
hwnd
,
hDC
,
&
r
);
...
...
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