diff options
author | nyamatongwe <unknown> | 2013-04-25 10:10:53 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-04-25 10:10:53 +1000 |
commit | e1846c112ed77eaa50cdb431dd2a0e0200d6ec28 (patch) | |
tree | c95b456a1fce7f4f8cb6d04df730f1fc604e45b2 | |
parent | e1964f6e7e247bfd2830de627fa0c1aee034f550 (diff) | |
download | scintilla-mirror-e1846c112ed77eaa50cdb431dd2a0e0200d6ec28.tar.gz |
Extracted common code from branches.
-rw-r--r-- | win32/ScintillaWin.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 7db2fc0fd..f8d884a98 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -569,12 +569,12 @@ LRESULT ScintillaWin::WndPaint(uptr_t wParam) { pps = &ps; ::BeginPaint(MainHWND(), pps); } + rcPaint = PRectangle(pps->rcPaint.left, pps->rcPaint.top, pps->rcPaint.right, pps->rcPaint.bottom); + PRectangle rcClient = GetClientRectangle(); + paintingAllText = rcPaint.Contains(rcClient); if (technology == SC_TECHNOLOGY_DEFAULT) { AutoSurface surfaceWindow(pps->hdc, this); if (surfaceWindow) { - rcPaint = PRectangle(pps->rcPaint.left, pps->rcPaint.top, pps->rcPaint.right, pps->rcPaint.bottom); - PRectangle rcClient = GetClientRectangle(); - paintingAllText = rcPaint.Contains(rcClient); Paint(surfaceWindow, rcPaint); surfaceWindow->Release(); } @@ -584,9 +584,6 @@ LRESULT ScintillaWin::WndPaint(uptr_t wParam) { AutoSurface surfaceWindow(pRenderTarget, this); if (surfaceWindow) { pRenderTarget->BeginDraw(); - rcPaint = PRectangle(pps->rcPaint.left, pps->rcPaint.top, pps->rcPaint.right, pps->rcPaint.bottom); - PRectangle rcClient = GetClientRectangle(); - paintingAllText = rcPaint.Contains(rcClient); Paint(surfaceWindow, rcPaint); surfaceWindow->Release(); HRESULT hr = pRenderTarget->EndDraw(); |