mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 21:25:05 +00:00
Implement Wine port EnumLogFontExW2A.
svn path=/trunk/; revision=26460
This commit is contained in:
parent
8c39ab1ac8
commit
e808f1ee16
|
@ -157,6 +157,12 @@ LogFontW2A(
|
|||
CONST LOGFONTW *pW
|
||||
);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
EnumLogFontExW2A(
|
||||
LPENUMLOGFONTEXA fontA,
|
||||
CONST ENUMLOGFONTEXW *fontW );
|
||||
|
||||
/* FIXME: Put in some public header */
|
||||
UINT
|
||||
WINAPI
|
||||
|
|
|
@ -383,3 +383,21 @@ LogFontW2A(LPLOGFONTA pA, CONST LOGFONTW *pW)
|
|||
#undef COPYN
|
||||
#undef COPYS
|
||||
}
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
EnumLogFontExW2A( LPENUMLOGFONTEXA fontA, CONST ENUMLOGFONTEXW *fontW )
|
||||
{
|
||||
LogFontW2A( (LPLOGFONTA)fontA, (CONST LOGFONTW *)fontW );
|
||||
|
||||
WideCharToMultiByte( CP_ACP, 0, fontW->elfFullName, -1,
|
||||
(LPSTR) fontA->elfFullName, LF_FULLFACESIZE, NULL, NULL );
|
||||
fontA->elfFullName[LF_FULLFACESIZE-1] = '\0';
|
||||
WideCharToMultiByte( CP_ACP, 0, fontW->elfStyle, -1,
|
||||
(LPSTR) fontA->elfStyle, LF_FACESIZE, NULL, NULL );
|
||||
fontA->elfStyle[LF_FACESIZE-1] = '\0';
|
||||
WideCharToMultiByte( CP_ACP, 0, fontW->elfScript, -1,
|
||||
(LPSTR) fontA->elfScript, LF_FACESIZE, NULL, NULL );
|
||||
fontA->elfScript[LF_FACESIZE-1] = '\0';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue