diff options
author | Zufu Liu <unknown> | 2022-03-05 16:25:28 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2022-03-05 16:25:28 +1100 |
commit | bbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (patch) | |
tree | 0e99e4a1db470052c8ec106c2e1376f551a8524b | |
parent | d2299a660d680f8a533abcbf8e050eb41a893e25 (diff) | |
download | scintilla-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.cxx | 1 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
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; |