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
952affea
Commit
952affea
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: Allow passing simple LOGFONTW to NtGdiHfontCreate.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
fdd7f315
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
font.c
dlls/win32u/font.c
+19
-10
gdi.c
dlls/wow64win/gdi.c
+2
-2
ntgdi.h
include/ntgdi.h
+1
-1
No files found.
dlls/win32u/font.c
View file @
952affea
...
...
@@ -4478,26 +4478,35 @@ UINT WINAPI NtGdiGetTextCharsetInfo( HDC hdc, FONTSIGNATURE *fs, DWORD flags )
/***********************************************************************
* NtGdiHfontCreate (win32u.@)
*/
HFONT
WINAPI
NtGdiHfontCreate
(
const
ENUMLOGFONTEXDVW
*
penumex
,
ULONG
size
,
ULONG
type
,
HFONT
WINAPI
NtGdiHfontCreate
(
const
void
*
logfont
,
ULONG
size
,
ULONG
type
,
ULONG
flags
,
void
*
data
)
{
HFONT
hFont
;
FONTOBJ
*
fontPtr
;
const
LOGFONTW
*
plf
;
if
(
!
penumex
)
return
0
;
if
(
!
logfont
)
return
0
;
if
(
penumex
->
elfEnumLogfontEx
.
elfFullName
[
0
]
||
penumex
->
elfEnumLogfontEx
.
elfStyle
[
0
]
||
penumex
->
elfEnumLogfontEx
.
elfScript
[
0
])
if
(
size
==
sizeof
(
ENUMLOGFONTEXDVW
)
||
size
==
sizeof
(
ENUMLOGFONTEXW
))
{
FIXME
(
"some fields ignored. fullname=%s, style=%s, script=%s
\n
"
,
debugstr_w
(
penumex
->
elfEnumLogfontEx
.
elfFullName
),
debugstr_w
(
penumex
->
elfEnumLogfontEx
.
elfStyle
),
debugstr_w
(
penumex
->
elfEnumLogfontEx
.
elfScript
));
const
ENUMLOGFONTEXW
*
lfex
=
logfont
;
if
(
lfex
->
elfFullName
[
0
]
||
lfex
->
elfStyle
[
0
]
||
lfex
->
elfScript
[
0
])
{
FIXME
(
"some fields ignored. fullname=%s, style=%s, script=%s
\n
"
,
debugstr_w
(
lfex
->
elfFullName
),
debugstr_w
(
lfex
->
elfStyle
),
debugstr_w
(
lfex
->
elfScript
));
}
plf
=
&
lfex
->
elfLogFont
;
}
else
if
(
size
!=
sizeof
(
LOGFONTW
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
else
plf
=
logfont
;
plf
=
&
penumex
->
elfEnumLogfontEx
.
elfLogFont
;
if
(
!
(
fontPtr
=
malloc
(
sizeof
(
*
fontPtr
)
)))
return
0
;
fontPtr
->
logfont
=
*
plf
;
...
...
dlls/wow64win/gdi.c
View file @
952affea
...
...
@@ -403,13 +403,13 @@ NTSTATUS WINAPI wow64_NtGdiSetTextJustification( UINT *args )
NTSTATUS
WINAPI
wow64_NtGdiHfontCreate
(
UINT
*
args
)
{
const
ENUMLOGFONTEXDVW
*
enumex
=
get_ptr
(
&
args
);
const
void
*
logfont
=
get_ptr
(
&
args
);
ULONG
unk2
=
get_ulong
(
&
args
);
ULONG
unk3
=
get_ulong
(
&
args
);
ULONG
unk4
=
get_ulong
(
&
args
);
void
*
data
=
get_ptr
(
&
args
);
return
HandleToUlong
(
NtGdiHfontCreate
(
enumex
,
unk2
,
unk3
,
unk4
,
data
));
return
HandleToUlong
(
NtGdiHfontCreate
(
logfont
,
unk2
,
unk3
,
unk4
,
data
));
}
NTSTATUS
WINAPI
wow64_NtGdiGetFontFileData
(
UINT
*
args
)
...
...
include/ntgdi.h
View file @
952affea
...
...
@@ -371,7 +371,7 @@ BOOL WINAPI NtGdiGetTextMetricsW( HDC hdc, TEXTMETRICW *metrics, ULONG flags
BOOL
WINAPI
NtGdiGetTransform
(
HDC
hdc
,
DWORD
which
,
XFORM
*
xform
);
BOOL
WINAPI
NtGdiGradientFill
(
HDC
hdc
,
TRIVERTEX
*
vert_array
,
ULONG
nvert
,
void
*
grad_array
,
ULONG
ngrad
,
ULONG
mode
);
HFONT
WINAPI
NtGdiHfontCreate
(
const
ENUMLOGFONTEXDVW
*
enumex
,
ULONG
unk2
,
ULONG
unk3
,
HFONT
WINAPI
NtGdiHfontCreate
(
const
void
*
logfont
,
ULONG
unk2
,
ULONG
unk3
,
ULONG
unk4
,
void
*
data
);
DWORD
WINAPI
NtGdiInitSpool
(
void
);
INT
WINAPI
NtGdiIntersectClipRect
(
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
...
...
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