summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-10 16:54:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-10 17:25:07 +0300
commit3a28edfb7ac991ad70a7baf76f48218d9db89bcb (patch)
tree918e56537dd2f7c2ce94e97a297a83a55d6f6ea6 /src/resources/ambientlayer.cpp
parentf199b9ba7da47cb6f9aa95f843c0628621899aa9 (diff)
downloadplus-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.gz
plus-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.bz2
plus-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.tar.xz
plus-3a28edfb7ac991ad70a7baf76f48218d9db89bcb.zip
Split ImageHelper to ImageHelper, SDLImageHelper, OpenGLImageHelper.
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp
index f2eaeab81..e51160efe 100644
--- a/src/resources/ambientlayer.cpp
+++ b/src/resources/ambientlayer.cpp
@@ -39,7 +39,7 @@ AmbientLayer::AmbientLayer(Image *img, float parallax,
if (!mImage)
return;
- if (keepRatio && !ImageHelper::useOpenGL()
+ if (keepRatio && !imageHelper->useOpenGL()
/*&& defaultScreenWidth != 0
&& defaultScreenHeight != 0*/
&& mainGraphics->mWidth != defaultScreenWidth
@@ -106,7 +106,7 @@ void AmbientLayer::draw(Graphics *graphics, int x, int y)
if (!mImage)
return;
- if (!ImageHelper::useOpenGL() || !mKeepRatio)
+ if (!imageHelper->useOpenGL() || !mKeepRatio)
{
graphics->drawImagePattern(mImage, static_cast<int>(-mPosX),
static_cast<int>(-mPosY), x + static_cast<int>(mPosX),