diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 9b5559ae99..07dc08dd73 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2239,6 +2239,12 @@ void Cursor::screenUpdateFlags(Update::flags f) const } +void Cursor::noScreenUpdate() const +{ + disp_.screenUpdate(Update::None); +} + + void Cursor::forceBufferUpdate() const { disp_.forceBufferUpdate(); @@ -2257,12 +2263,6 @@ bool Cursor::needBufferUpdate() const } -void Cursor::noScreenUpdate() const -{ - disp_.screenUpdate(Update::None); -} - - Font Cursor::getFont() const { // The logic here should more or less match to the diff --git a/src/Cursor.h b/src/Cursor.h index 08309fa0c8..efce063c50 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -394,16 +394,11 @@ public: void undispatched() const; /// the event was already dispatched void dispatched() const; - /// Set which screen update should be done + + /// Describe the screen update that should be done void screenUpdateFlags(Update::flags f) const; - /// Forces an updateBuffer() call - void forceBufferUpdate() const; - /// Removes any pending updateBuffer() call - void clearBufferUpdate() const; - /// Do we need to call updateBuffer()? - bool needBufferUpdate() const; /** - * don't call update() when done + * Reset update flags to Update::None. * * Should only be called by an inset's doDispatch() method. It means: * I handled that request and I can reassure you that the screen does @@ -414,6 +409,13 @@ public: */ void noScreenUpdate() const; + /// Forces an updateBuffer() call + void forceBufferUpdate() const; + /// Removes any pending updateBuffer() call + void clearBufferUpdate() const; + /// Do we need to call updateBuffer()? + bool needBufferUpdate() const; + /// Repopulate the slices insets from bottom to top. Useful /// for stable iterators or Undo data. void sanitize();