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
6ead654f
Commit
6ead654f
authored
Jun 10, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Simplify get_text_metr_size.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
d65f2492
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sysparams.c
dlls/win32u/sysparams.c
+2
-3
No files found.
dlls/win32u/sysparams.c
View file @
6ead654f
...
...
@@ -2743,14 +2743,13 @@ static LONG get_char_dimensions( HDC hdc, TEXTMETRICW *metric, LONG *height )
/* get text metrics and/or "average" char width of the specified logfont
* for the specified dc */
static
void
get_text_metr_size
(
HDC
hdc
,
LOGFONTW
*
plf
,
TEXTMETRICW
*
metric
,
UINT
*
psz
)
static
void
get_text_metr_size
(
HDC
hdc
,
LOGFONTW
*
lf
,
TEXTMETRICW
*
metric
,
UINT
*
psz
)
{
ENUMLOGFONTEXDVW
exdv
=
{
.
elfEnumLogfontEx
.
elfLogFont
=
*
plf
};
HFONT
hfont
,
hfontsav
;
TEXTMETRICW
tm
;
UINT
ret
;
if
(
!
metric
)
metric
=
&
tm
;
hfont
=
NtGdiHfontCreate
(
&
exdv
,
sizeof
(
exdv
),
0
,
0
,
NULL
);
hfont
=
NtGdiHfontCreate
(
lf
,
sizeof
(
*
lf
),
0
,
0
,
NULL
);
if
(
!
hfont
||
!
(
hfontsav
=
NtGdiSelectFont
(
hdc
,
hfont
)))
{
metric
->
tmHeight
=
-
1
;
...
...
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