From 9efac54ffaf18ce42542fa77a070973a130c5087 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Wed, 30 Mar 2022 09:53:09 +0300 Subject: [PATCH] changing the text on a label does not require a full repaint --- src/Label.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Label.hpp b/src/Label.hpp index 6b467ff..49ef34d 100644 --- a/src/Label.hpp +++ b/src/Label.hpp @@ -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();