diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 14:51:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | 8f670620dbf4c8092e9f834f9d65cbc607b81511 (patch) | |
tree | 1a1a8e51ecaa65955639c3f9279f6f704e6dac5d /src/utils/sdl2helper.cpp | |
parent | ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d (diff) | |
download | manaverse-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.gz manaverse-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.bz2 manaverse-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.xz manaverse-8f670620dbf4c8092e9f834f9d65cbc607b81511.zip |
move WMInfo function calls into SDL helper.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r-- | src/utils/sdl2helper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp index 33a88cc8a..a65f381b3 100644 --- a/src/utils/sdl2helper.cpp +++ b/src/utils/sdl2helper.cpp @@ -26,6 +26,7 @@ #include "utils/stringutils.h" +#include <SDL_syswm.h> #include <SDL_video.h> #include "debug.h" @@ -62,4 +63,9 @@ void SDL::setVsync(const int val) SDL_GL_SetSwapInterval(val); } +bool SDL::getWindowWMInfo(SDL_Window *const window, SDL_SysWMinfo *const info) +{ + return SDL_GetWindowWMInfo(window, info); +} + #endif // USE_SDL2 |