diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-05 01:09:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-05 01:09:30 +0300 |
commit | 485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 (patch) | |
tree | ce74f5a2fb646439cb58c2d85bc67ff29b70dbb7 /src/gui/gui.cpp | |
parent | 33f4a30373c8978d4e4f29422a5b0132fd14a0ec (diff) | |
download | plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.gz plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.bz2 plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.xz plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.zip |
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 1f8589b50..be516ebe9 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -698,7 +698,8 @@ void Gui::handleMouseMoved(const MouseInput &mouseInput) && Widget::widgetExists(widget) && (widget != nullptr)) { - int x, y; + int x; + int y; widget->getAbsolutePosition(x, y); if (x > mouseX || y > mouseY @@ -1273,7 +1274,8 @@ Widget* Gui::getWidgetAt(const int x, const int y) const while (child != nullptr) { Widget *const swap = child; - int parentX, parentY; + int parentX; + int parentY; parent->getAbsolutePosition(parentX, parentY); child = parent->getWidgetAt(x - parentX, y - parentY); parent = swap; |