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
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -16,7 +16,7 @@ public:
~Label() {} ~Label() {}
std::string &get_text() { return m_text; } 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: protected:
void on_paint(); void on_paint();
void on_init(); void on_init();