summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
commit88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch)
treeb35a28cd317e2895c063749180b98edfe223c032 /src/gui/gui.h
parentc24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff)
downloadmanaverse-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.h')
-rw-r--r--src/gui/gui.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 723c653ca..b4f9991f0 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -88,6 +88,12 @@ class SDLInput;
class Widget;
class Window;
+#ifdef USE_SDL2
+#define MouseStateType uint32_t
+#else
+#define MouseStateType uint8_t
+#endif
+
/**
* \defgroup GUI Core GUI related classes (widgets)
*/
@@ -215,7 +221,7 @@ class Gui final
int getLastMouseY() const
{ return mLastMouseY; }
- static uint32_t getMouseState(int *const x, int *const y);
+ static MouseStateType getMouseState(int *const x, int *const y);
/**
* Sets the top widget. The top widget is the root widget