diff options
author | nyamatongwe <devnull@localhost> | 2013-04-25 10:10:53 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-04-25 10:10:53 +1000 |
commit | a88b7fb5261abd26123c79d5bc1343337e392494 (patch) | |
tree | 9ccf89e7eacdfe023e363aab9586dabff79beb96 | |
parent | 476950a6ae073471d2cd112c40d60f76d1e4db81 (diff) | |
download | scintilla-mirror-a88b7fb5261abd26123c79d5bc1343337e392494.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(); |