From 2009580ac3d79746f3f8072aee72aef5c84cb127 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 Aug 2013 15:06:11 +1000 Subject: On Windows, fix painting on an explicit HDC when first paint attempt abandoned. --- doc/ScintillaHistory.html | 3 +++ win32/ScintillaWin.cxx | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 @@ Feature #1002.
  • + On Windows, fix painting on an explicit HDC when first paint attempt abandoned. +
  • +
  • Easier access to printing on Qt with formatRange method.
  • 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; -- cgit v1.2.3