diff options
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>(pTextFormat->GetFontSize()); } #else - if (0 == ::GetObject(hfont, sizeof(lf), &lf)) { + if (0 == ::GetObjectW(hfont, sizeof(lf), &lf)) { return 0; } #endif |