summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
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;