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
26ee2ca4
Commit
26ee2ca4
authored
Apr 04, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix member names in NEWTEXTMETRICEX structs.
parent
9c2d2bad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
25 deletions
+22
-25
wingdi16.h
include/wine/wingdi16.h
+3
-3
wingdi.h
include/wingdi.h
+4
-4
font.c
objects/font.c
+15
-18
No files found.
include/wine/wingdi16.h
View file @
26ee2ca4
...
...
@@ -150,7 +150,7 @@ typedef struct _OUTLINETEXTMETRIC16
{
UINT16
otmSize
;
TEXTMETRIC16
otmTextMetrics
;
BYTE
otmFil
t
er
;
BYTE
otmFil
l
er
;
PANOSE
otmPanoseNumber
;
UINT16
otmfsSelection
;
UINT16
otmfsType
;
...
...
@@ -212,8 +212,8 @@ typedef struct
typedef
struct
{
NEWTEXTMETRIC16
ntm
et
m
;
FONTSIGNATURE
ntm
eFontSignature
;
NEWTEXTMETRIC16
ntm
T
m
;
FONTSIGNATURE
ntm
FontSig
;
}
NEWTEXTMETRICEX16
,
*
LPNEWTEXTMETRICEX16
;
typedef
INT16
CALLBACK
(
*
FONTENUMPROC16
)(
SEGPTR
,
SEGPTR
,
UINT16
,
LPARAM
);
...
...
include/wingdi.h
View file @
26ee2ca4
...
...
@@ -1133,14 +1133,14 @@ DECL_WINELIB_TYPE_AW(LPNEWTEXTMETRIC)
typedef
struct
{
NEWTEXTMETRICA
ntm
et
m
;
FONTSIGNATURE
ntm
eFontSignature
;
NEWTEXTMETRICA
ntm
T
m
;
FONTSIGNATURE
ntm
FontSig
;
}
NEWTEXTMETRICEXA
,
*
LPNEWTEXTMETRICEXA
;
typedef
struct
{
NEWTEXTMETRICW
ntm
et
m
;
FONTSIGNATURE
ntm
eFontSignature
;
NEWTEXTMETRICW
ntm
T
m
;
FONTSIGNATURE
ntm
FontSig
;
}
NEWTEXTMETRICEXW
,
*
LPNEWTEXTMETRICEXW
;
DECL_WINELIB_TYPE_AW
(
NEWTEXTMETRICEX
)
...
...
objects/font.c
View file @
26ee2ca4
...
...
@@ -380,34 +380,31 @@ void FONT_TextMetricWToA(const TEXTMETRICW *ptmW, LPTEXTMETRICA ptmA )
void
FONT_NewTextMetricExWTo16
(
const
NEWTEXTMETRICEXW
*
ptmW
,
LPNEWTEXTMETRICEX16
ptm16
)
{
FONT_TextMetricWTo16
((
LPTEXTMETRICW
)
ptmW
,
(
LPTEXTMETRIC16
)
ptm16
);
ptm16
->
ntmetm
.
ntmFlags
=
ptmW
->
ntmetm
.
ntmFlags
;
ptm16
->
ntmetm
.
ntmSizeEM
=
ptmW
->
ntmetm
.
ntmSizeEM
;
ptm16
->
ntmetm
.
ntmCellHeight
=
ptmW
->
ntmetm
.
ntmCellHeight
;
ptm16
->
ntmetm
.
ntmAvgWidth
=
ptmW
->
ntmetm
.
ntmAvgWidth
;
memcpy
(
&
ptm16
->
ntmeFontSignature
,
&
ptmW
->
ntmeFontSignature
,
sizeof
(
FONTSIGNATURE
));
ptm16
->
ntmTm
.
ntmFlags
=
ptmW
->
ntmTm
.
ntmFlags
;
ptm16
->
ntmTm
.
ntmSizeEM
=
ptmW
->
ntmTm
.
ntmSizeEM
;
ptm16
->
ntmTm
.
ntmCellHeight
=
ptmW
->
ntmTm
.
ntmCellHeight
;
ptm16
->
ntmTm
.
ntmAvgWidth
=
ptmW
->
ntmTm
.
ntmAvgWidth
;
memcpy
(
&
ptm16
->
ntmFontSig
,
&
ptmW
->
ntmFontSig
,
sizeof
(
FONTSIGNATURE
));
}
void
FONT_NewTextMetricExWToA
(
const
NEWTEXTMETRICEXW
*
ptmW
,
LPNEWTEXTMETRICEXA
ptmA
)
{
FONT_TextMetricWToA
((
LPTEXTMETRICW
)
ptmW
,
(
LPTEXTMETRICA
)
ptmA
);
ptmA
->
ntmetm
.
ntmFlags
=
ptmW
->
ntmetm
.
ntmFlags
;
ptmA
->
ntmetm
.
ntmSizeEM
=
ptmW
->
ntmetm
.
ntmSizeEM
;
ptmA
->
ntmetm
.
ntmCellHeight
=
ptmW
->
ntmetm
.
ntmCellHeight
;
ptmA
->
ntmetm
.
ntmAvgWidth
=
ptmW
->
ntmetm
.
ntmAvgWidth
;
memcpy
(
&
ptmA
->
ntmeFontSignature
,
&
ptmW
->
ntmeFontSignature
,
sizeof
(
FONTSIGNATURE
));
ptmA
->
ntmTm
.
ntmFlags
=
ptmW
->
ntmTm
.
ntmFlags
;
ptmA
->
ntmTm
.
ntmSizeEM
=
ptmW
->
ntmTm
.
ntmSizeEM
;
ptmA
->
ntmTm
.
ntmCellHeight
=
ptmW
->
ntmTm
.
ntmCellHeight
;
ptmA
->
ntmTm
.
ntmAvgWidth
=
ptmW
->
ntmTm
.
ntmAvgWidth
;
memcpy
(
&
ptmA
->
ntmFontSig
,
&
ptmW
->
ntmFontSig
,
sizeof
(
FONTSIGNATURE
));
}
void
FONT_NewTextMetricEx16ToW
(
const
NEWTEXTMETRICEX16
*
ptm16
,
LPNEWTEXTMETRICEXW
ptmW
)
{
FONT_TextMetric16ToW
((
LPTEXTMETRIC16
)
ptm16
,
(
LPTEXTMETRICW
)
ptmW
);
ptmW
->
ntmetm
.
ntmFlags
=
ptm16
->
ntmetm
.
ntmFlags
;
ptmW
->
ntmetm
.
ntmSizeEM
=
ptm16
->
ntmetm
.
ntmSizeEM
;
ptmW
->
ntmetm
.
ntmCellHeight
=
ptm16
->
ntmetm
.
ntmCellHeight
;
ptmW
->
ntmetm
.
ntmAvgWidth
=
ptm16
->
ntmetm
.
ntmAvgWidth
;
memcpy
(
&
ptmW
->
ntmeFontSignature
,
&
ptm16
->
ntmeFontSignature
,
sizeof
(
FONTSIGNATURE
));
ptmW
->
ntmTm
.
ntmFlags
=
ptm16
->
ntmTm
.
ntmFlags
;
ptmW
->
ntmTm
.
ntmSizeEM
=
ptm16
->
ntmTm
.
ntmSizeEM
;
ptmW
->
ntmTm
.
ntmCellHeight
=
ptm16
->
ntmTm
.
ntmCellHeight
;
ptmW
->
ntmTm
.
ntmAvgWidth
=
ptm16
->
ntmTm
.
ntmAvgWidth
;
memcpy
(
&
ptmW
->
ntmFontSig
,
&
ptm16
->
ntmFontSig
,
sizeof
(
FONTSIGNATURE
));
}
...
...
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