From 39ecd7b37a55b59fba2ab61e83f810f3e16b1e31 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 17 May 2014 02:23:39 +0100 Subject: [PATCH] Cleanup --- examples/widgets/ExampleColorWidget.hpp | 5 +---- examples/widgets/ExampleShapesWidget.hpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/widgets/ExampleColorWidget.hpp b/examples/widgets/ExampleColorWidget.hpp index 52356d1..0a12e73 100644 --- a/examples/widgets/ExampleColorWidget.hpp +++ b/examples/widgets/ExampleColorWidget.hpp @@ -114,11 +114,8 @@ protected: bgSmall.draw(); } - void onReshape(int, int) override + void onReshape(int width, int height) override { - const int width = getWidth(); - const int height = getHeight(); - // full bg bgFull = Rectangle(0, 0, width, height); diff --git a/examples/widgets/ExampleShapesWidget.hpp b/examples/widgets/ExampleShapesWidget.hpp index 9ae7ebe..a4975b8 100644 --- a/examples/widgets/ExampleShapesWidget.hpp +++ b/examples/widgets/ExampleShapesWidget.hpp @@ -81,11 +81,8 @@ protected: cir.drawOutline(); } - void onReshape(int, int) override + void onReshape(int width, int height) override { - const int width = getWidth(); - const int height = getHeight(); - // background bg = Rectangle(0, 0, width, height);