From 7391ecf94fcfbb7e5499d8a91e69c10ce6eed853 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 12 Feb 2015 23:07:53 +0000 Subject: [PATCH] Fix build --- dpf | 2 +- examples/widgets/ExampleColorWidget.hpp | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dpf b/dpf index 7dbd5a7..04d32cd 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 7dbd5a7afe004df625b9dfea7f4d79cf7479f7f0 +Subproject commit 04d32cdca2d3083c71d9dfbec0ec9103e059c9ba diff --git a/examples/widgets/ExampleColorWidget.hpp b/examples/widgets/ExampleColorWidget.hpp index 80f73e8..e1d326a 100644 --- a/examples/widgets/ExampleColorWidget.hpp +++ b/examples/widgets/ExampleColorWidget.hpp @@ -116,24 +116,23 @@ protected: void onResize(const ResizeEvent& ev) override { - const int width = ev.size.getWidth(); - const int height = ev.size.getHeight(); + const uint width = ev.size.getWidth(); + const uint height = ev.size.getHeight(); // full bg - bgFull = Rectangle(0, 0, width, height); + bgFull = Rectangle(0, 0, width, height); // small bg, centered 2/3 size - bgSmall = Rectangle(width/6, height/6, width*2/3, height*2/3); + bgSmall = Rectangle(width/6, height/6, width*2/3, height*2/3); } char cur; bool reverse; int r, g, b; - Rectangle bgFull, bgSmall; + Rectangle bgFull, bgSmall; }; - // ------------------------------------------------------ #endif // EXAMPLE_COLOR_WIDGET_HPP_INCLUDED