diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-19 19:58:23 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-19 19:58:23 +0100 |
commit | 52aa0fb9a1745bd7919c42a37ba48f6bf77e2984 (patch) | |
tree | 978e0f57505fed237ebddcc174e084b1c596df50 /plugingui/button.h | |
parent | fde590274c9d99e2cabc5b5f9971f2051659f1aa (diff) |
Make sure that the button is drawn in the center of it's client area.
Diffstat (limited to 'plugingui/button.h')
-rw-r--r-- | plugingui/button.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/button.h b/plugingui/button.h index e5de6f1..f42dc99 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -58,7 +58,7 @@ protected: virtual void mouseEnterEvent() override; private: - bool in_button; + bool in_button{false}; Painter::Box box_up; Painter::Box box_down; @@ -72,8 +72,8 @@ private: Font font{":fontemboss.png"}; - state_t draw_state; - state_t button_state; + state_t draw_state{up}; + state_t button_state{up}; }; } // GUI:: |