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/MarginView.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/MarginView.h') diff --git a/src/MarginView.h b/src/MarginView.h index bb1981ed8..9d74ddb5e 100644 --- a/src/MarginView.h +++ b/src/MarginView.h @@ -34,9 +34,8 @@ public: MarginView() noexcept; - void DropGraphics(bool freeObjects) noexcept; - void AllocateGraphics(const ViewStyle &vsDraw); - void RefreshPixMaps(Surface *surfaceWindow, WindowID wid, const ViewStyle &vsDraw); + void DropGraphics() noexcept; + void RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw); void PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, PRectangle rcMargin, const EditModel &model, const ViewStyle &vs); }; -- cgit v1.2.3