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/graphicsmanager.cpp | |
parent | ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d (diff) | |
download | plus-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/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 0e0ac4fa3..0dcfbb377 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -403,12 +403,7 @@ void GraphicsManager::updatePlanformExtensions() { SDL_SysWMinfo info; SDL_VERSION(&info.version); -#ifdef USE_SDL2 - // +++ need use SDL_GetWindowWMInfo - if (false) -#else - if (SDL_GetWMInfo(&info)) -#endif + if (SDL::getWindowWMInfo(mainGraphics->getWindow(), &info)) { #ifdef WIN32 if (!mwglGetExtensionsString) @@ -991,12 +986,7 @@ void GraphicsManager::detectPixelSize() { SDL_SysWMinfo info; SDL_VERSION(&info.version); -#ifdef USE_SDL2 - // +++ need use SDL_GetWindowWMInfo - if (false) -#else - if (SDL_GetWMInfo(&info)) -#endif + if (SDL::getWindowWMInfo(mainGraphics->getWindow(), &info)) { #ifdef WIN32 HDC hdc = GetDC(info.window); |