From: Robin Dunn Date: Tue, 27 Mar 2001 17:29:04 +0000 (+0000) Subject: Put back some code that was commented out for testing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a7642be106b7d31cb7eb7b55ef74ec4072dce3a2 Put back some code that was commented out for testing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/stc/ScintillaWX.cpp b/contrib/src/stc/ScintillaWX.cpp index 9f19ebbca9..e652082bb9 100644 --- a/contrib/src/stc/ScintillaWX.cpp +++ b/contrib/src/stc/ScintillaWX.cpp @@ -473,13 +473,16 @@ void ScintillaWX::DoDragLeave() { // Redraw all of text area. This paint will not be abandoned. void ScintillaWX::FullPaint() { paintState = painting; -// rcPaint = GetTextRectangle(); -// wxClientDC dc(wMain.GetID()); -// Surface surfaceWindow; -// surfaceWindow.Init(&dc); -// Paint(&surfaceWindow, rcPaint); -// surfaceWindow.Release(); - wMain.GetID()->Refresh(FALSE); + rcPaint = GetTextRectangle(); + paintingAllText = true; + wxClientDC dc(wMain.GetID()); + Surface surfaceWindow; + surfaceWindow.Init(&dc); + Paint(&surfaceWindow, rcPaint); + surfaceWindow.Release(); + +// wMain.GetID()->Refresh(FALSE); + paintState = notPainting; } diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index 9f19ebbca9..e652082bb9 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -473,13 +473,16 @@ void ScintillaWX::DoDragLeave() { // Redraw all of text area. This paint will not be abandoned. void ScintillaWX::FullPaint() { paintState = painting; -// rcPaint = GetTextRectangle(); -// wxClientDC dc(wMain.GetID()); -// Surface surfaceWindow; -// surfaceWindow.Init(&dc); -// Paint(&surfaceWindow, rcPaint); -// surfaceWindow.Release(); - wMain.GetID()->Refresh(FALSE); + rcPaint = GetTextRectangle(); + paintingAllText = true; + wxClientDC dc(wMain.GetID()); + Surface surfaceWindow; + surfaceWindow.Init(&dc); + Paint(&surfaceWindow, rcPaint); + surfaceWindow.Release(); + +// wMain.GetID()->Refresh(FALSE); + paintState = notPainting; }