diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-20 16:25:35 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-20 16:25:35 +1100 |
commit | 434ea41aa400557964d73867008cfa8b1f64d8c4 (patch) | |
tree | 7a6981a28f521391a97cdbd4224fd81b2035bf24 /src/Editor.h | |
parent | 3d45c4bf974b6fdcce9712bbd3f0071a9618b89f (diff) | |
download | scintilla-mirror-434ea41aa400557964d73867008cfa8b1f64d8c4.tar.gz |
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.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 3 |
1 files changed, 1 insertions, 2 deletions
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. |