From 434ea41aa400557964d73867008cfa8b1f64d8c4 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 20 Mar 2021 16:25:35 +1100 Subject: Use Surface::AllocatePixMap instead of changing an existing surface with InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small. --- src/Editor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index fc3a84ecd..d4f997af6 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -284,8 +284,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void InvalidateStyleRedraw(); void RefreshStyleData(); void SetRepresentations(); - void DropGraphics(bool freeObjects) noexcept; - void AllocateGraphics(); + void DropGraphics() noexcept; // The top left visible point in main window coordinates. Will be 0,0 except for // scroll views where it will be equivalent to the current scroll position. -- cgit v1.2.3