summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 14:51:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commit8f670620dbf4c8092e9f834f9d65cbc607b81511 (patch)
tree1a1a8e51ecaa65955639c3f9279f6f704e6dac5d /src/graphicsmanager.cpp
parented77e8fb99e16e72cde0e163a9b58c5cefd8d05d (diff)
downloadmanaplus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.gz
manaplus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.bz2
manaplus-8f670620dbf4c8092e9f834f9d65cbc607b81511.tar.xz
manaplus-8f670620dbf4c8092e9f834f9d65cbc607b81511.zip
move WMInfo function calls into SDL helper.
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);