summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 14:51:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commit8f670620dbf4c8092e9f834f9d65cbc607b81511 (patch)
tree1a1a8e51ecaa65955639c3f9279f6f704e6dac5d /src/utils/sdl2helper.cpp
parented77e8fb99e16e72cde0e163a9b58c5cefd8d05d (diff)
downloadplus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.gz
plus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.bz2
plus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.xz
plus-8f670620dbf4c8092e9f834f9d65cbc607b81511.zip
move WMInfo function calls into SDL helper.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r--src/utils/sdl2helper.cpp6
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