From ff83cfac10939ceba524c93d4e36f634f4bec805 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 May 2017 19:09:17 +0200 Subject: Make sure we don't resize to negative values. --- plugingui/frame.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugingui/frame.h') 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:: -- cgit v1.2.3