aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Lorente2016-08-05 18:30:58 +0200
committerBorja Lorente2016-08-14 19:01:01 +0200
commit5fade27a0cbac0ac8014bfff9a14d112baf3f7cd (patch)
tree47e8cdad1cd07aede3db804467cbf1947a2b886a
parent28bf4f11683eb165805e6f94e32ccf07819ed44c (diff)
downloadscummvm-rg350-5fade27a0cbac0ac8014bfff9a14d112baf3f7cd.tar.gz
scummvm-rg350-5fade27a0cbac0ac8014bfff9a14d112baf3f7cd.tar.bz2
scummvm-rg350-5fade27a0cbac0ac8014bfff9a14d112baf3f7cd.zip
MACVENTURE: Fix indentation in controls.cpp
-rw-r--r--engines/macventure/controls.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/engines/macventure/controls.cpp b/engines/macventure/controls.cpp
index f467d72de6..26807a3308 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;
}
}