From 5fade27a0cbac0ac8014bfff9a14d112baf3f7cd Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Fri, 5 Aug 2016 18:30:58 +0200 Subject: [PATCH] MACVENTURE: Fix indentation in controls.cpp --- engines/macventure/controls.cpp | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/engines/macventure/controls.cpp b/engines/macventure/controls.cpp index f467d72de63..26807a33089 100644 --- a/engines/macventure/controls.cpp +++ b/engines/macventure/controls.cpp @@ -24,47 +24,47 @@ namespace MacVenture { CommandButton::CommandButton() { - _gui = nullptr; + _gui = nullptr; } CommandButton::CommandButton(ControlData data, Gui *g) { - _data = data; - _gui = g; - _selected = false; + _data = data; + _gui = g; + _selected = false; } void CommandButton::draw(Graphics::ManagedSurface &surface) const { - uint colorFill = _selected ? kColorBlack : kColorWhite; - uint colorText = _selected ? kColorWhite : kColorBlack; + uint colorFill = _selected ? kColorBlack : kColorWhite; + uint colorText = _selected ? kColorWhite : kColorBlack; - surface.fillRect(_data.bounds, colorFill); - surface.frameRect(_data.bounds, kColorBlack); + surface.fillRect(_data.bounds, colorFill); + surface.frameRect(_data.bounds, kColorBlack); - if (_data.titleLength > 0) { - const Graphics::Font &font = _gui->getCurrentFont(); - Common::String title(_data.title); - font.drawString( - &surface, - title, - _data.bounds.left, - _data.bounds.top, - _data.bounds.right - _data.bounds.left, - colorText, - Graphics::kTextAlignCenter); - } + if (_data.titleLength > 0) { + const Graphics::Font &font = _gui->getCurrentFont(); + Common::String title(_data.title); + font.drawString( + &surface, + title, + _data.bounds.left, + _data.bounds.top, + _data.bounds.right - _data.bounds.left, + colorText, + Graphics::kTextAlignCenter); + } } bool CommandButton::isInsideBounds(const Common::Point point) const { - return _data.bounds.contains(point); + return _data.bounds.contains(point); } const ControlData& CommandButton::getData() const { - return _data; + return _data; } void CommandButton::select() { - _selected = true; + _selected = true; } void CommandButton::unselect() { @@ -72,6 +72,6 @@ void CommandButton::unselect() { } bool CommandButton::isSelected() { - return _selected; + return _selected; } }