diff options
author | nyamatongwe <devnull@localhost> | 2011-11-07 12:55:32 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-11-07 12:55:32 +1100 |
commit | 67877c700222b1fc9d736a8a1cfb7349ec6b76d7 (patch) | |
tree | cae8955a616fbea4c6b0bdaafdf6a1abda1373f3 | |
parent | b3655f501b2d6232781391bf431a57110b840921 (diff) | |
download | scintilla-mirror-67877c700222b1fc9d736a8a1cfb7349ec6b76d7.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 |