From 5b49aea07a12ce7435fcf0129fc1d3f94f312ef7 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Wed, 6 Aug 2014 04:20:40 +0100 Subject: [PATCH] Unused local variable problem fixed. --- examples/common/imgui/imgui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index db7b8585..2942fd11 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -973,7 +973,7 @@ struct Imgui return res; } - void input(const char* _label, char* _str, uint32_t _len, bool /*_enabled*/) + void input(const char* _label, char* _str, uint32_t _len, bool _enabled) { m_widgetId++; const uint16_t id = (m_areaId << 8) | m_widgetId; @@ -1024,9 +1024,9 @@ struct Imgui xx += (labelWidth + 6); width -= (labelWidth + 6); } -// const bool enabled = _enabled && isEnabled(m_areaId); -// const bool over = enabled && inRect(xx, yy, width, height); -// const bool res = inputLogic(id, over); + const bool enabled = _enabled && isEnabled(m_areaId); + const bool over = enabled && inRect(xx, yy, width, height); + inputLogic(id, over); drawRoundedRect( (float)xx , (float)yy