summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
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),