From 8f670620dbf4c8092e9f834f9d65cbc607b81511 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 14:51:24 +0300 Subject: move WMInfo function calls into SDL helper. --- src/graphicsmanager.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/graphicsmanager.cpp') 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); -- cgit v1.2.3-70-g09d2