[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690
Alexandre Julliard
julliard at winehq.org
Sun Jun 17 20:01:57 UTC 2012
The following commit has been merged in the wheezy branch:
commit 158140596e613e8d524230a70b2d019363bb2144
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Mar 13 22:12:07 2012 +0100
comdlg32: Implement WM_CHOOSEFONT_GETLOGFONT in the font dialog.
(cherry picked from commit 66ea6464c20ba24f7844b4eaba4e2e0621a87142)
diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c
index c081e91..25dc1e4 100644
--- a/dlls/comdlg32/fontdlg.c
+++ b/dlls/comdlg32/fontdlg.c
@@ -1194,9 +1194,14 @@ static INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
case WM_DESTROY:
return CFn_WMDestroy(hDlg, lpcfw);
case WM_CHOOSEFONT_GETLOGFONT:
+ {
+ LOGFONTA *logfont = (LOGFONTA *)lParam;
TRACE("WM_CHOOSEFONT_GETLOGFONT lParam=%08lX\n", lParam);
- FIXME("current logfont back to caller\n");
+ memcpy( logfont, lpcfw->lpLogFont, FIELD_OFFSET( LOGFONTA, lfFaceName ));
+ WideCharToMultiByte( CP_ACP, 0, lpcfw->lpLogFont->lfFaceName, LF_FACESIZE,
+ logfont->lfFaceName, LF_FACESIZE, NULL, NULL );
break;
+ }
case WM_PAINT:
return CFn_WMPaint(hDlg, wParam, lParam, lpcfw);
}
@@ -1242,7 +1247,7 @@ static INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
return TRUE;
case WM_CHOOSEFONT_GETLOGFONT:
TRACE("WM_CHOOSEFONT_GETLOGFONT lParam=%08lX\n", lParam);
- FIXME("current logfont back to caller\n");
+ memcpy( (LOGFONTW *)lParam, lpcf->lpLogFont, sizeof(LOGFONTW) );
break;
case WM_PAINT:
return CFn_WMPaint(hDlg, wParam, lParam, lpcf);
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list