diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
commit | 88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch) | |
tree | b35a28cd317e2895c063749180b98edfe223c032 /src/gui/gui.cpp | |
parent | c24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff) | |
download | manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2 manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip |
Fix code style in gui.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4ad1138eb..7be573995 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -487,7 +487,7 @@ void Gui::draw() int mouseX; int mouseY; - const uint8_t button = getMouseState(&mouseX, &mouseY); + const MouseStateType button = getMouseState(&mouseX, &mouseY); if ((client->getMouseFocused() || button & SDL_BUTTON(1)) && mMouseCursors && mCustomCursor && mMouseCursorAlpha > 0.0F) @@ -1111,9 +1111,9 @@ void Gui::removeDragged(Widget *widget) mFocusHandler->setDraggedWidget(nullptr); } -uint32_t Gui::getMouseState(int *const x, int *const y) +MouseStateType Gui::getMouseState(int *const x, int *const y) { - const uint32_t res = SDL_GetMouseState(x, y); + const MouseStateType res = SDL_GetMouseState(x, y); const int scale = mainGraphics->getScale(); (*x) /= scale; (*y) /= scale; |