Author: jimtabor
Date: Sun Apr 22 16:46:26 2007
New Revision: 26460
URL:
http://svn.reactos.org/svn/reactos?rev=26460&view=rev
Log:
Implement Wine port EnumLogFontExW2A.
Modified:
trunk/reactos/dll/win32/gdi32/include/gdi32p.h
trunk/reactos/dll/win32/gdi32/objects/utils.c
Modified: trunk/reactos/dll/win32/gdi32/include/gdi32p.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/include/gd…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/include/gdi32p.h (original)
+++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h Sun Apr 22 16:46:26 2007
@@ -157,6 +157,12 @@
CONST LOGFONTW *pW
);
+VOID
+STDCALL
+EnumLogFontExW2A(
+ LPENUMLOGFONTEXA fontA,
+ CONST ENUMLOGFONTEXW *fontW );
+
/* FIXME: Put in some public header */
UINT
WINAPI
Modified: trunk/reactos/dll/win32/gdi32/objects/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/ut…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/utils.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/utils.c Sun Apr 22 16:46:26 2007
@@ -383,3 +383,21 @@
#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';
+}
+