diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-16 08:54:45 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-16 09:01:18 +0200 |
commit | 1fbfe5cbc288ead6bba9d30ddb849dcb41a0d5e0 (patch) | |
tree | 5223806cab0745ebfd9624586cac55f945aa35cf /vcl/win | |
parent | 3024e891b2ce85059069e599e411db457e4bccd1 (diff) |
Fix typo from 6c436ba09cb35235ce6f4065cf74c9a6ff14a4bd
This broke OpenGL glyph caching since we were using a different DC
than the one we selected the font on.
Change-Id: I43218891aa1bc75599700ce6e0b582a5e73ff210
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 1f31cfa1df15..57ac16f8f8d6 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -57,7 +57,7 @@ bool WinFontInstance::CacheGlyphToAtlas(HDC hDC, HFONT hFont, int nGlyphIndex, S SAL_WARN("vcl.gdi", "CreateCompatibleDC failed: " << WindowsErrorString(GetLastError())); return false; } - HFONT hOrigFont = static_cast<HFONT>(SelectObject(hDC, hFont)); + HFONT hOrigFont = static_cast<HFONT>(SelectObject(hNewDC, hFont)); if (hOrigFont == nullptr) { SAL_WARN("vcl.gdi", "SelectObject failed: " << WindowsErrorString(GetLastError())); |