From 3734f5d3c741e877c49ff1c99ce67cb4a764023b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Nov 2015 20:03:18 +0100 Subject: Only initialise Font once. --- plugingui/button.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugingui/button.h') diff --git a/plugingui/button.h b/plugingui/button.h index e33c3a8..e5de6f1 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -31,6 +31,7 @@ #include "widget.h" #include "painter.h" #include "notifier.h" +#include "font.h" namespace GUI { @@ -69,6 +70,8 @@ private: std::string text; + Font font{":fontemboss.png"}; + state_t draw_state; state_t button_state; }; -- cgit v1.2.3