diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-21 21:18:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | a3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (patch) | |
tree | cd07d091f69f5a3000aaddcbc8911d472b9137e7 /src/graphicsmanager.cpp | |
parent | 84189722a64c0794fbd918b4e6412908be2b7394 (diff) | |
download | plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.gz plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.bz2 plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.xz plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.zip |
second part with compilation fixes for SDL2.
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); |