changing the text on a label does not require a full repaint

This commit is contained in:
hippoz 2022-03-30 09:53:09 +03:00
parent 156d876364
commit 9efac54ffa
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -16,7 +16,7 @@ public:
~Label() {}
std::string &get_text() { return m_text; }
void set_text(std::string text) { m_text = text; wants_full_repaint(); }
void set_text(std::string text) { m_text = text; wants_repaint(); }
protected:
void on_paint();
void on_init();