diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-05 19:08:40 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-05 19:08:40 +1000 |
commit | 0f2bb6479b09bf0c6c537bdd67654c6c4b6b011c (patch) | |
tree | 3ce644cc85aa9b11a6524904771cee2b41feaec6 /win32 | |
parent | 837ca0527d7fa9286cae4755038e458d4f0e2a02 (diff) | |
download | scintilla-mirror-0f2bb6479b09bf0c6c537bdd67654c6c4b6b011c.tar.gz |
Backed out changeset: 7402342dc7a3 Caching client rectangle on EditView.
This change was not compatible with Cocoa as it uses document-based coordinates
rather than view-based.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 71c1867d7..0b340a747 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -834,7 +834,7 @@ sptr_t ScintillaWin::WndPaint(uptr_t wParam) { ::BeginPaint(MainHWND(), pps); } rcPaint = PRectangle::FromInts(pps->rcPaint.left, pps->rcPaint.top, pps->rcPaint.right, pps->rcPaint.bottom); - const PRectangle rcClient = view.ViewRectangle(); + const PRectangle rcClient = GetClientRectangle(); paintingAllText = BoundsContains(rcPaint, hRgnUpdate, rcClient); if (technology == SC_TECHNOLOGY_DEFAULT) { AutoSurface surfaceWindow(pps->hdc, this); @@ -2927,7 +2927,7 @@ void ScintillaWin::FullPaint() { */ void ScintillaWin::FullPaintDC(HDC hdc) { paintState = painting; - rcPaint = view.ViewRectangle(); + rcPaint = GetClientRectangle(); paintingAllText = true; if (technology == SC_TECHNOLOGY_DEFAULT) { AutoSurface surfaceWindow(hdc, this); |