diff options
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 23e105e5f..c0ea92ba6 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -413,7 +413,12 @@ 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 { #ifdef WIN32 if (!mwglGetExtensionsString) @@ -996,7 +1001,12 @@ 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 { #ifdef WIN32 HDC hdc = GetDC(info.window); |