From 67877c700222b1fc9d736a8a1cfb7349ec6b76d7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 7 Nov 2011 12:55:32 +1100 Subject: Switch to Unicode call when copying font to match font creation. --- win32/PlatWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c6d8df771..a74f2c10a 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -196,7 +196,7 @@ HFONT FormatAndMetrics::HFont() { memset(&lf, 0, sizeof(lf)); #if defined(USE_D2D) if (technology == SCWIN_TECH_GDI) { - if (0 == ::GetObject(hfont, sizeof(lf), &lf)) { + if (0 == ::GetObjectW(hfont, sizeof(lf), &lf)) { return 0; } } else { @@ -209,7 +209,7 @@ HFONT FormatAndMetrics::HFont() { lf.lfHeight = -static_cast(pTextFormat->GetFontSize()); } #else - if (0 == ::GetObject(hfont, sizeof(lf), &lf)) { + if (0 == ::GetObjectW(hfont, sizeof(lf), &lf)) { return 0; } #endif -- cgit v1.2.3