summaryrefslogtreecommitdiff
path: root/src/utils/sdlhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r--src/utils/sdlhelper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp
index 2690554be..204dd921d 100644
--- a/src/utils/sdlhelper.cpp
+++ b/src/utils/sdlhelper.cpp
@@ -26,6 +26,7 @@
#include "utils/stringutils.h"
+#include <SDL_syswm.h>
#include <SDL_video.h>
#include "debug.h"
@@ -88,4 +89,10 @@ void SDL::setVsync(const int val)
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, val);
}
+bool SDL::getWindowWMInfo(SDL_Surface *const window A_UNUSED,
+ SDL_SysWMinfo *const info)
+{
+ return SDL_GetWMInfo(info);
+}
+
#endif // USE_SDL2