From bbfeaf78ee634c24bd7fcb1c7faff207473e71e4 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sat, 5 Mar 2022 16:25:28 +1100 Subject: 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. --- win32/ScintillaWin.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'win32') 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(wParam); } // Invalidate all cached information including layout. - DropGraphics(); InvalidateStyleRedraw(); break; -- cgit v1.2.3