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.h | |
parent | c24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff) | |
download | mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2 mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip |
Fix code style in gui.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 8 |
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 |