From 25a3689ece0fccfa04b8feb66a918a6a2fe0b35a Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Wed, 24 Aug 2016 20:45:18 +0300 Subject: [PATCH] ScaleWidget now reacts to scaling invoked through key shortcuts --- src/Application/ScaleWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Application/ScaleWidget.cpp b/src/Application/ScaleWidget.cpp index d02e49a..5354f0f 100644 --- a/src/Application/ScaleWidget.cpp +++ b/src/Application/ScaleWidget.cpp @@ -23,6 +23,11 @@ void ScaleWidget::update(){ } void ScaleWidget::draw(){ + // TODO: This should be handled by using GuiEvent + if(_surface != 0){ + setRect(_surface->getBoundingBox()); + } + ofPushStyle(); ofSetColor(255, 255, 255);