aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-03-05 16:25:28 +1100
committerZufu Liu <unknown>2022-03-05 16:25:28 +1100
commitbbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (patch)
tree0e99e4a1db470052c8ec106c2e1376f551a8524b
parentd2299a660d680f8a533abcbf8e050eb41a893e25 (diff)
downloadscintilla-mirror-bbfeaf78ee634c24bd7fcb1c7faff207473e71e4.tar.gz
Feature [feature-requests:#1432] Remove redundant calls to DropGraphics.
InvalidateStyleRedraw calls DropGraphics and the unique_ptr destructors will ensure that the pixmaps are destroyed when Editor is destroyed.
-rw-r--r--src/Editor.cxx1
-rw-r--r--win32/ScintillaWin.cxx2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ccf07b6a8..34fcd4220 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -204,7 +204,6 @@ Editor::Editor() : durationWrapOneByte(0.000001, 0.00000001, 0.00001) {
Editor::~Editor() {
pdoc->RemoveWatcher(this, nullptr);
- DropGraphics();
}
void Editor::Finalise() {
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index eae82a0fb..64c356b49 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1837,7 +1837,6 @@ sptr_t ScintillaWin::SciMessage(Message iMessage, uptr_t wParam, sptr_t lParam)
technology = technologyNew;
view.bufferedDraw = technologyNew == Technology::Default;
// Invalidate all cached information including layout.
- DropGraphics();
InvalidateStyleRedraw();
}
}
@@ -1850,7 +1849,6 @@ sptr_t ScintillaWin::SciMessage(Message iMessage, uptr_t wParam, sptr_t lParam)
bidirectional = static_cast<Bidirectional>(wParam);
}
// Invalidate all cached information including layout.
- DropGraphics();
InvalidateStyleRedraw();
break;