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);