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
129862f3
Commit
129862f3
authored
Feb 17, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Feb 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Themed buttons should not draw in System if font unset.
parent
6a8da85c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
theme_button.c
dlls/comctl32/theme_button.c
+6
-2
No files found.
dlls/comctl32/theme_button.c
View file @
129862f3
...
...
@@ -181,8 +181,10 @@ static void CB_draw(HTHEME theme, HWND hwnd, HDC hDC, ButtonState drawState, UIN
hPrevFont
=
SelectObject
(
hDC
,
font
);
created_font
=
TRUE
;
}
}
else
}
else
{
font
=
(
HFONT
)
SendMessageW
(
hwnd
,
WM_GETFONT
,
0
,
0
);
hPrevFont
=
SelectObject
(
hDC
,
font
);
}
GetClientRect
(
hwnd
,
&
bgRect
);
GetThemeBackgroundContentRect
(
theme
,
hDC
,
part
,
state
,
&
bgRect
,
&
textRect
);
...
...
@@ -243,8 +245,10 @@ static void GB_draw(HTHEME theme, HWND hwnd, HDC hDC, ButtonState drawState, UIN
hPrevFont
=
SelectObject
(
hDC
,
font
);
created_font
=
TRUE
;
}
}
else
}
else
{
font
=
(
HFONT
)
SendMessageW
(
hwnd
,
WM_GETFONT
,
0
,
0
);
hPrevFont
=
SelectObject
(
hDC
,
font
);
}
GetClientRect
(
hwnd
,
&
bgRect
);
textRect
=
bgRect
;
...
...
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