summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp14
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);