Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c99c022a
Commit
c99c022a
authored
Nov 13, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Nov 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mismatches between the Wine headers and the Microsoft headers.
parent
6637654b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
49 deletions
+38
-49
wingdi16.h
include/wine/wingdi16.h
+1
-2
wingdi.h
include/wingdi.h
+25
-11
x11font.h
include/x11font.h
+0
-23
font.c
objects/font.c
+12
-13
No files found.
include/wine/wingdi16.h
View file @
c99c022a
...
...
@@ -269,7 +269,6 @@ typedef struct
typedef
BOOL16
(
CALLBACK
*
DCHOOKPROC
)(
HDC16
,
WORD
,
DWORD
,
LPARAM
);
typedef
INT16
(
CALLBACK
*
FONTENUMPROC16
)(
SEGPTR
,
SEGPTR
,
UINT16
,
LPARAM
);
typedef
INT16
(
CALLBACK
*
FONTENUMPROCEX16
)(
SEGPTR
,
SEGPTR
,
UINT16
,
LPARAM
);
typedef
VOID
(
CALLBACK
*
LINEDDAPROC16
)(
INT16
,
INT16
,
LPARAM
);
typedef
INT16
(
CALLBACK
*
GOBJENUMPROC16
)(
SEGPTR
,
LPARAM
);
...
...
@@ -417,7 +416,7 @@ INT16 WINAPI EndPage16(HDC16);
BOOL16
WINAPI
EndPath16
(
HDC16
);
INT16
WINAPI
EndSpoolPage16
(
HPJOB16
);
INT16
WINAPI
EnumFontFamilies16
(
HDC16
,
LPCSTR
,
FONTENUMPROC16
,
LPARAM
);
INT16
WINAPI
EnumFontFamiliesEx16
(
HDC16
,
LPLOGFONT16
,
FONTENUMPROC
EX
16
,
LPARAM
,
DWORD
);
INT16
WINAPI
EnumFontFamiliesEx16
(
HDC16
,
LPLOGFONT16
,
FONTENUMPROC16
,
LPARAM
,
DWORD
);
INT16
WINAPI
EnumFonts16
(
HDC16
,
LPCSTR
,
FONTENUMPROC16
,
LPARAM
);
BOOL16
WINAPI
EnumMetaFile16
(
HDC16
,
HMETAFILE16
,
MFENUMPROC16
,
LPARAM
);
INT16
WINAPI
EnumObjects16
(
HDC16
,
INT16
,
GOBJENUMPROC16
,
LPARAM
);
...
...
include/wingdi.h
View file @
c99c022a
...
...
@@ -1166,22 +1166,36 @@ typedef struct
DECL_WINELIB_TYPE_AW
(
NEWTEXTMETRICEX
)
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCA
)(
const
LOGFONTA
*
,
const
TEXTMETRICA
*
,
DWORD
,
LPARAM
);
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCW
)(
const
LOGFONTW
*
,
const
TEXTMETRICW
*
,
DWORD
,
LPARAM
);
#if defined(STRICT) || defined(__WINE__)
#if !defined(NOTEXTMETRIC)
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCA
)(
const
LOGFONTA
*
,
const
TEXTMETRICA
*
,
DWORD
,
LPARAM
);
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCW
)(
const
LOGFONTW
*
,
const
TEXTMETRICW
*
,
DWORD
,
LPARAM
);
#else
/* !defined(NOTEXTMETRIC) */
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCA
)(
const
LOGFONTA
*
,
const
VOID
*
,
DWORD
,
LPARAM
);
typedef
int
(
CALLBACK
*
OLDFONTENUMPROCW
)(
const
LOGFONTW
*
,
const
VOID
*
,
DWORD
,
LPARAM
);
#endif
/* !defined(NOTEXTMETRIC) */
DECL_WINELIB_TYPE_AW
(
OLDFONTENUMPROC
)
typedef
OLDFONTENUMPROCA
FONTENUMPROCA
;
typedef
OLDFONTENUMPROCW
FONTENUMPROCW
;
DECL_WINELIB_TYPE_AW
(
FONTENUMPROC
)
typedef
int
(
CALLBACK
*
FONTENUMPROCEXA
)(
LPENUMLOGFONTEXA
,
NEWTEXTMETRICEXA
*
,
DWORD
,
LPARAM
);
typedef
int
(
CALLBACK
*
FONTENUMPROCEXW
)(
LPENUMLOGFONTEXW
,
NEWTEXTMETRICEXW
*
,
DWORD
,
LPARAM
);
DECL_WINELIB_TYPE_AW
(
FONTENUMPROCEX
)
typedef
INT
(
CALLBACK
*
GOBJENUMPROC
)(
LPVOID
,
LPARAM
);
typedef
VOID
(
CALLBACK
*
LINEDDAPROC
)(
INT
,
INT
,
LPARAM
);
typedef
INT
(
CALLBACK
*
GOBJENUMPROC
)(
LPVOID
,
LPARAM
);
typedef
VOID
(
CALLBACK
*
LINEDDAPROC
)(
INT
,
INT
,
LPARAM
);
#else
/* defined(STRICT) || defined(__WINE__) */
typedef
FARPROC
OLDFONTENUMPROC
;
typedef
FARPROC
FONTENUMPROCA
;
typedef
FARPROC
FONTENUMPROCW
;
DECL_WINELIB_TYPE_AW
(
FONTENUMPROC
)
typedef
FARPROC
GOBJENUMPROC
;
typedef
FARPROC
LINEDDAPROC
;
#endif
/* defined(STRICT) || defined(__WINE__) */
/* tmPitchAndFamily bits */
#define TMPF_FIXED_PITCH 1
/* means variable pitch */
...
...
@@ -3168,8 +3182,8 @@ BOOL WINAPI EnumEnhMetaFile(HDC,HENHMETAFILE,ENHMFENUMPROC,LPVOID,const REC
INT
WINAPI
EnumFontFamiliesA
(
HDC
,
LPCSTR
,
FONTENUMPROCA
,
LPARAM
);
INT
WINAPI
EnumFontFamiliesW
(
HDC
,
LPCWSTR
,
FONTENUMPROCW
,
LPARAM
);
#define EnumFontFamilies WINELIB_NAME_AW(EnumFontFamilies)
INT
WINAPI
EnumFontFamiliesExA
(
HDC
,
LPLOGFONTA
,
FONTENUMPROC
EX
A
,
LPARAM
,
DWORD
);
INT
WINAPI
EnumFontFamiliesExW
(
HDC
,
LPLOGFONTW
,
FONTENUMPROC
EX
W
,
LPARAM
,
DWORD
);
INT
WINAPI
EnumFontFamiliesExA
(
HDC
,
LPLOGFONTA
,
FONTENUMPROCA
,
LPARAM
,
DWORD
);
INT
WINAPI
EnumFontFamiliesExW
(
HDC
,
LPLOGFONTW
,
FONTENUMPROCW
,
LPARAM
,
DWORD
);
#define EnumFontFamiliesEx WINELIB_NAME_AW(EnumFontFamiliesEx)
INT
WINAPI
EnumFontsA
(
HDC
,
LPCSTR
,
FONTENUMPROCA
,
LPARAM
);
INT
WINAPI
EnumFontsW
(
HDC
,
LPCWSTR
,
FONTENUMPROCW
,
LPARAM
);
...
...
include/x11font.h
View file @
c99c022a
...
...
@@ -219,29 +219,6 @@ typedef struct
WORD
internal_charset
;
}
fontMatch
;
typedef
struct
{
LPLOGFONT16
lpLogFontParam
;
FONTENUMPROC16
lpEnumFunc
;
LPARAM
lpData
;
LPNEWTEXTMETRICEX16
lpTextMetric
;
LPENUMLOGFONTEX16
lpLogFont
;
SEGPTR
segTextMetric
;
SEGPTR
segLogFont
;
}
fontEnum16
;
typedef
struct
{
LPLOGFONTW
lpLogFontParam
;
FONTENUMPROCEXW
lpEnumFunc
;
LPARAM
lpData
;
NEWTEXTMETRICEXW
*
lpTextMetric
;
LPENUMLOGFONTEXW
lpLogFont
;
DWORD
dwFlags
;
}
fontEnum32
;
extern
fontObject
*
XFONT_GetFontObject
(
X_PHYSFONT
pFont
);
extern
XFontStruct
*
XFONT_GetFontStruct
(
X_PHYSFONT
pFont
);
extern
LPIFONTINFO16
XFONT_GetFontInfo
(
X_PHYSFONT
pFont
);
...
...
objects/font.c
View file @
c99c022a
...
...
@@ -63,7 +63,7 @@ typedef struct
typedef
struct
{
LPLOGFONT16
lpLogFontParam
;
FONTENUMPROC
EX16
lpEnumFunc
;
FONTENUMPROC
16
lpEnumFunc
;
LPARAM
lpData
;
LPNEWTEXTMETRICEX16
lpTextMetric
;
...
...
@@ -78,7 +78,7 @@ typedef struct
typedef
struct
{
LPLOGFONTW
lpLogFontParam
;
FONTENUMPROC
EXW
lpEnumFunc
;
FONTENUMPROC
W
lpEnumFunc
;
LPARAM
lpData
;
DWORD
dwFlags
;
HDC
hdc
;
...
...
@@ -132,7 +132,7 @@ static CHARSETINFO FONT_tci[MAXTCIINDEX] = {
};
/* ### start build ### */
extern
WORD
CALLBACK
FONT_CallTo16_word_llwl
(
FONTENUMPROC
EX
16
,
LONG
,
LONG
,
WORD
,
LONG
);
extern
WORD
CALLBACK
FONT_CallTo16_word_llwl
(
FONTENUMPROC16
,
LONG
,
LONG
,
WORD
,
LONG
);
/* ### stop build ### */
/***********************************************************************
...
...
@@ -564,7 +564,7 @@ static INT FONT_EnumInstance( LPENUMLOGFONTEXW plf, NEWTEXTMETRICEXW *ptm,
}
GDI_ReleaseObj
(
pfe
->
hdc
);
/* release the GDI lock */
ret
=
pfe
->
lpEnumFunc
(
plf
,
ptm
,
fType
,
pfe
->
lpData
);
ret
=
pfe
->
lpEnumFunc
(
&
plf
->
elfLogFont
,
(
TEXTMETRICW
*
)
ptm
,
fType
,
pfe
->
lpData
);
/* get the lock again and make sure the DC is still valid */
dc
=
DC_GetDCPtr
(
pfe
->
hdc
);
...
...
@@ -582,7 +582,7 @@ static INT FONT_EnumInstance( LPENUMLOGFONTEXW plf, NEWTEXTMETRICEXW *ptm,
* EnumFontFamiliesEx (GDI.613)
*/
INT16
WINAPI
EnumFontFamiliesEx16
(
HDC16
hDC
,
LPLOGFONT16
plf
,
FONTENUMPROC
EX
16
efproc
,
LPARAM
lParam
,
FONTENUMPROC16
efproc
,
LPARAM
lParam
,
DWORD
dwFlags
)
{
fontEnum16
fe16
;
...
...
@@ -622,7 +622,7 @@ INT16 WINAPI EnumFontFamiliesEx16( HDC16 hDC, LPLOGFONT16 plf,
* FONT_EnumFontFamiliesEx
*/
static
INT
FONT_EnumFontFamiliesEx
(
HDC
hDC
,
LPLOGFONTW
plf
,
FONTENUMPROC
EX
W
efproc
,
FONTENUMPROCW
efproc
,
LPARAM
lParam
,
DWORD
dwUnicode
)
{
INT
ret
=
1
,
ret2
;
...
...
@@ -667,7 +667,7 @@ static INT FONT_EnumFontFamiliesEx( HDC hDC, LPLOGFONTW plf,
* EnumFontFamiliesExW (GDI32.@)
*/
INT
WINAPI
EnumFontFamiliesExW
(
HDC
hDC
,
LPLOGFONTW
plf
,
FONTENUMPROC
EX
W
efproc
,
FONTENUMPROCW
efproc
,
LPARAM
lParam
,
DWORD
dwFlags
)
{
return
FONT_EnumFontFamiliesEx
(
hDC
,
plf
,
efproc
,
lParam
,
ENUM_UNICODE
);
...
...
@@ -677,14 +677,13 @@ INT WINAPI EnumFontFamiliesExW( HDC hDC, LPLOGFONTW plf,
* EnumFontFamiliesExA (GDI32.@)
*/
INT
WINAPI
EnumFontFamiliesExA
(
HDC
hDC
,
LPLOGFONTA
plf
,
FONTENUMPROC
EX
A
efproc
,
FONTENUMPROCA
efproc
,
LPARAM
lParam
,
DWORD
dwFlags
)
{
LOGFONTW
lfW
;
FONT_LogFontAToW
(
plf
,
&
lfW
);
return
FONT_EnumFontFamiliesEx
(
hDC
,
&
lfW
,
(
FONTENUMPROCEXW
)
efproc
,
lParam
,
0
);
return
FONT_EnumFontFamiliesEx
(
hDC
,
&
lfW
,
(
FONTENUMPROCW
)
efproc
,
lParam
,
0
);
}
/***********************************************************************
...
...
@@ -714,7 +713,7 @@ INT WINAPI EnumFontFamiliesA( HDC hDC, LPCSTR lpFamily,
if
(
lpFamily
)
lstrcpynA
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
else
lf
.
lfFaceName
[
0
]
=
lf
.
lfFaceName
[
1
]
=
'\0'
;
return
EnumFontFamiliesExA
(
hDC
,
&
lf
,
(
FONTENUMPROCEXA
)
efproc
,
lpData
,
0
);
return
EnumFontFamiliesExA
(
hDC
,
&
lf
,
efproc
,
lpData
,
0
);
}
/***********************************************************************
...
...
@@ -729,7 +728,7 @@ INT WINAPI EnumFontFamiliesW( HDC hDC, LPCWSTR lpFamily,
if
(
lpFamily
)
lstrcpynW
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
else
lf
.
lfFaceName
[
0
]
=
0
;
return
EnumFontFamiliesExW
(
hDC
,
&
lf
,
(
FONTENUMPROCEXW
)
efproc
,
lpData
,
0
);
return
EnumFontFamiliesExW
(
hDC
,
&
lf
,
efproc
,
lpData
,
0
);
}
/***********************************************************************
...
...
@@ -738,7 +737,7 @@ INT WINAPI EnumFontFamiliesW( HDC hDC, LPCWSTR lpFamily,
INT16
WINAPI
EnumFonts16
(
HDC16
hDC
,
LPCSTR
lpName
,
FONTENUMPROC16
efproc
,
LPARAM
lpData
)
{
return
EnumFontFamilies16
(
hDC
,
lpName
,
(
FONTENUMPROCEX16
)
efproc
,
lpData
);
return
EnumFontFamilies16
(
hDC
,
lpName
,
efproc
,
lpData
);
}
/***********************************************************************
...
...
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