diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-10 16:54:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-10 17:25:07 +0300 |
commit | 3a28edfb7ac991ad70a7baf76f48218d9db89bcb (patch) | |
tree | 918e56537dd2f7c2ce94e97a297a83a55d6f6ea6 /src/gui | |
parent | f199b9ba7da47cb6f9aa95f843c0628621899aa9 (diff) | |
download | mv-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.gz mv-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.bz2 mv-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.xz mv-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.zip |
Split ImageHelper to ImageHelper, SDLImageHelper, OpenGLImageHelper.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/debugwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/minimap.cpp | 2 | ||||
-rw-r--r-- | src/gui/sdlfont.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/desktop.cpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index 6d0895426..6951d5b4f 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -158,7 +158,7 @@ MapDebugTab::MapDebugTab() : mUpdateTime = 0; #ifdef USE_OPENGL - switch (ImageHelper::getLoadAsOpenGL()) + switch (imageHelper->useOpenGL()) { case 0: mFPSText = _("%d FPS (Software)"); diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 30d9f40bb..651d9a66c 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -143,7 +143,7 @@ void Minimap::setMap(Map *map) SDL_UnlockSurface(surface); - mMapImage = ImageHelper::load(surface); + mMapImage = imageHelper->load(surface); mMapImage->setAlpha(Client::getGuiAlpha()); mCustomMapImage = true; SDL_FreeSurface(surface); diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index bafc2c8e2..b623337eb 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -85,7 +85,7 @@ class SDLTextChunk return; } - img = ImageHelper::createTextSurface(surface, alpha); + img = imageHelper->createTextSurface(surface, alpha); SDL_FreeSurface(surface); } diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index a0f2eb3fe..d3a2e8c50 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -100,7 +100,7 @@ void Desktop::draw(gcn::Graphics *graphics) if (mWallpaper) { - if (!ImageHelper::useOpenGL()) + if (!imageHelper->useOpenGL()) { g->drawImage(mWallpaper, (getWidth() - mWallpaper->getWidth()) / 2, @@ -136,7 +136,7 @@ void Desktop::setBestFittingWallpaper() if (mWallpaper) mWallpaper->decRef(); - if (!ImageHelper::useOpenGL() + if (!imageHelper->useOpenGL() && (nWallPaper->getWidth() != getWidth() || nWallPaper->getHeight() != getHeight())) { |