diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-19 19:09:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-19 19:09:17 +0200 |
commit | ff83cfac10939ceba524c93d4e36f634f4bec805 (patch) | |
tree | d481913f2136bf04d2d1deb650e6bd084a531676 /plugingui/frame.h | |
parent | a3dc9bd19f976cbc84ba3d1a16c72257b42b28ba (diff) |
Make sure we don't resize to negative values.
Diffstat (limited to 'plugingui/frame.h')
-rw-r--r-- | plugingui/frame.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/frame.h b/plugingui/frame.h index 8475690..eb745f6 100644 --- a/plugingui/frame.h +++ b/plugingui/frame.h @@ -80,7 +80,7 @@ private: void powerButtonStateChanged(bool clicked); // grey box - std::size_t bar_height; + int bar_height; GUI::Colour grey_box_colour{0.7}; GUI::Colour background_colour{0.85, 0.8}; @@ -95,12 +95,12 @@ private: // content box Widget* content{nullptr}; - std::size_t content_margin{12}; + int content_margin{12}; - std::size_t content_start_x; - std::size_t content_start_y; - std::size_t content_width; - std::size_t content_height; + int content_start_x; + int content_start_y; + int content_width; + int content_height; }; } // GUI:: |