From bf22bde27213325f06bfe23d143c002d293aba2c Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 15 Sep 2016 13:31:21 +0300 Subject: [PATCH] fix issue #294 --- src/dlangui/platforms/windows/win32fonts.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dlangui/platforms/windows/win32fonts.d b/src/dlangui/platforms/windows/win32fonts.d index c0def03c..0b197f61 100644 --- a/src/dlangui/platforms/windows/win32fonts.d +++ b/src/dlangui/platforms/windows/win32fonts.d @@ -519,7 +519,7 @@ class Win32FontManager : FontManager { EnumFontFamiliesExA( dc, // handle to DC &lf, // font information - &LVWin32FontEnumFontFamExProc, // callback function (FONTENUMPROC) + cast(FONTENUMPROCA)&LVWin32FontEnumFontFamExProc, // callback function (FONTENUMPROC) cast(LPARAM)(cast(void*)this), // additional data 0U // not used; must be 0 ); @@ -656,7 +656,7 @@ FontFamily pitchAndFamilyToFontFamily(ubyte flags) { } // definition -//extern(Windows) { +extern(Windows) { int LVWin32FontEnumFontFamExProc( const (LOGFONTA) *lf, // logical-font data const (TEXTMETRICA) *lpntme, // physical-font data @@ -681,4 +681,4 @@ FontFamily pitchAndFamilyToFontFamily(ubyte flags) { } return 1; } -//} +}