diff options
author | nyamatongwe <unknown> | 2011-11-07 12:55:32 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-11-07 12:55:32 +1100 |
commit | 5ff2773fb8e3a45f3f5a296c0c139ed426bb4355 (patch) | |
tree | 6fe0a56c4bc177360ee552f2976ce0f21ec5a05b | |
parent | 186e852ed9efb5ed7d45eca4358584287bf87ac1 (diff) | |
download | scintilla-mirror-5ff2773fb8e3a45f3f5a296c0c139ed426bb4355.tar.gz |
Switch to Unicode call when copying font to match font creation.
-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 |