diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-03 15:06:11 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-03 15:06:11 +1000 |
commit | d1ed1e1c16f60dae326e850894adc374babd97b6 (patch) | |
tree | 86f01342b7e5fc383b933122c597f3980b0db199 | |
parent | ab62fc9cf187b4fc5ab96e2890e35d4ec556d2a4 (diff) | |
download | scintilla-mirror-d1ed1e1c16f60dae326e850894adc374babd97b6.tar.gz |
On Windows, fix painting on an explicit HDC when first paint attempt abandoned.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index e5a2d6a49..eea36f502 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -467,6 +467,9 @@ <a href="http://sourceforge.net/p/scintilla/feature-requests/1002/">Feature #1002.</a> </li> <li> + On Windows, fix painting on an explicit HDC when first paint attempt abandoned. + </li> + <li> Easier access to printing on Qt with formatRange method. </li> <li> diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 340dcd86d..ab1723924 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -626,7 +626,11 @@ LRESULT ScintillaWin::WndPaint(uptr_t wParam) { ::EndPaint(MainHWND(), pps); if (paintState == paintAbandoned) { // Painting area was insufficient to cover new styling or brace highlight positions - FullPaint(); + if (IsOcxCtrl) { + FullPaintDC(pps->hdc); + } else { + FullPaint(); + } } paintState = notPainting; |