aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-04 15:46:53 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-04 15:46:53 +1000
commit27a277fe4bfeff302b3ad4752e59311ef6426193 (patch)
tree1568f0c4c1a3bea1e8364ad9d18e8e1c3fb32d3b /win32/ScintillaWin.cxx
parent3c3a5dba7a21d03d133566f116953cff527e2167 (diff)
downloadscintilla-mirror-27a277fe4bfeff302b3ad4752e59311ef6426193.tar.gz
Backport: Cache client rectangle on EditView so it can be used easily inside EditView.
Backport of changeset 6669:7402342dc7a3.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index e35012b19..e40f4facd 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -833,7 +833,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 = GetClientRectangle();
+ const PRectangle rcClient = view.ViewRectangle();
paintingAllText = BoundsContains(rcPaint, hRgnUpdate, rcClient);
if (technology == SC_TECHNOLOGY_DEFAULT) {
AutoSurface surfaceWindow(pps->hdc, this);
@@ -2915,7 +2915,7 @@ void ScintillaWin::FullPaint() {
*/
void ScintillaWin::FullPaintDC(HDC hdc) {
paintState = painting;
- rcPaint = GetClientRectangle();
+ rcPaint = view.ViewRectangle();
paintingAllText = true;
if (technology == SC_TECHNOLOGY_DEFAULT) {
AutoSurface surfaceWindow(hdc, this);