diff options
author | nyamatongwe <unknown> | 2005-07-22 13:24:40 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-07-22 13:24:40 +0000 |
commit | 693b27d2617d1b288fc60fdfda4fb536754bab70 (patch) | |
tree | 65659e9312590bfd176bbd54fcf0d6f2760036a9 | |
parent | f919cc6c0dd6bbb114256f4d80a4205ef8c63122 (diff) | |
download | scintilla-mirror-693b27d2617d1b288fc60fdfda4fb536754bab70.tar.gz |
Ensure DCs are emptied of non-stock, non-default objects before they are
released to keep BoundsChecker happy.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index fce2af9d4..b36cc276b 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1832,6 +1832,8 @@ void ScintillaWin::HorizontalScrollMessage(WPARAM wParam) { void ScintillaWin::RealizeWindowPalette(bool inBackGround) { RefreshStyleData(); HDC hdc = ::GetDC(MainHWND()); + // Select a stock font to prevent warnings from BoundsChecker + ::SelectObject(hdc, GetStockFont(DEFAULT_GUI_FONT)); AutoSurface surfaceWindow(hdc, this); if (surfaceWindow) { int changes = surfaceWindow->SetPalette(&palette, inBackGround); |