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
300ecff1
Commit
300ecff1
authored
Feb 22, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Support DTT_FONTPROP for DrawThemeTextEx().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a18df3a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
draw.c
dlls/uxtheme/draw.c
+9
-3
No files found.
dlls/uxtheme/draw.c
View file @
300ecff1
...
...
@@ -1660,6 +1660,7 @@ HRESULT WINAPI DrawThemeTextEx(HTHEME hTheme, HDC hdc, int iPartId, int iStateId
COLORREF
textColor
;
COLORREF
oldTextColor
;
int
oldBkMode
;
int
fontProp
;
TRACE
(
"%p %p %d %d %s:%d 0x%08x %p %p
\n
"
,
hTheme
,
hdc
,
iPartId
,
iStateId
,
debugstr_wn
(
pszText
,
iCharCount
),
iCharCount
,
flags
,
rect
,
options
);
...
...
@@ -1667,10 +1668,15 @@ HRESULT WINAPI DrawThemeTextEx(HTHEME hTheme, HDC hdc, int iPartId, int iStateId
if
(
!
hTheme
)
return
E_HANDLE
;
if
(
options
->
dwFlags
&
~
DTT_TEXTCOLOR
)
if
(
options
->
dwFlags
&
~
(
DTT_TEXTCOLOR
|
DTT_FONTPROP
)
)
FIXME
(
"unsupported flags 0x%08x
\n
"
,
options
->
dwFlags
);
hr
=
GetThemeFont
(
hTheme
,
hdc
,
iPartId
,
iStateId
,
TMT_FONT
,
&
logfont
);
if
(
options
->
dwFlags
&
DTT_FONTPROP
)
fontProp
=
options
->
iFontPropId
;
else
fontProp
=
TMT_FONT
;
hr
=
GetThemeFont
(
hTheme
,
hdc
,
iPartId
,
iStateId
,
fontProp
,
&
logfont
);
if
(
SUCCEEDED
(
hr
))
{
hFont
=
CreateFontIndirectW
(
&
logfont
);
if
(
!
hFont
)
...
...
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