diff options
author | Ľubomír Remák | 2018-08-04 16:57:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | a25715a29b0587ae6795eef63a575172e2cb971d (patch) | |
tree | b10acdeffd001f507209799498a6e9f90a585e06 /engines/mutationofjb/widgets/buttonwidget.cpp | |
parent | 6ff609c51478c07a00018e57d8149f09d97677e7 (diff) | |
download | scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.tar.gz scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.tar.bz2 scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.zip |
MUTATIONOFJB: Fix code formatting issues (with astyle).
Diffstat (limited to 'engines/mutationofjb/widgets/buttonwidget.cpp')
-rw-r--r-- | engines/mutationofjb/widgets/buttonwidget.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/mutationofjb/widgets/buttonwidget.cpp b/engines/mutationofjb/widgets/buttonwidget.cpp index 9f9a401eb6..911cb7d7df 100644 --- a/engines/mutationofjb/widgets/buttonwidget.cpp +++ b/engines/mutationofjb/widgets/buttonwidget.cpp @@ -38,9 +38,8 @@ void ButtonWidget::setCallback(ButtonWidgetCallback *callback) { } void ButtonWidget::handleEvent(const Common::Event &event) { - switch(event.type) { - case Common::EVENT_LBUTTONDOWN: - { + switch (event.type) { + case Common::EVENT_LBUTTONDOWN: { const int16 x = event.mouse.x; const int16 y = event.mouse.y; if (_area.contains(x, y)) { @@ -49,8 +48,7 @@ void ButtonWidget::handleEvent(const Common::Event &event) { } break; } - case Common::EVENT_LBUTTONUP: - { + case Common::EVENT_LBUTTONUP: { if (_pressed) { _pressed = false; markDirty(); |