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/EditView.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/EditView.h') diff --git a/src/EditView.h b/src/EditView.h index 11fe5c659..f5df7143f 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -109,9 +109,8 @@ public: int GetNextTabstop(Sci::Line line, int x) const noexcept; void LinesAddedOrRemoved(Sci::Line lineOfPos, Sci::Line linesAdded); - 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); LineLayout *RetrieveLineLayout(Sci::Line lineNumber, const EditModel &model); void LayoutLine(const EditModel &model, Sci::Line line, Surface *surface, const ViewStyle &vstyle, -- cgit v1.2.3