From af374aa2b2944749193af49cdca28532cf56fae2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Sep 2013 00:50:45 +0300 Subject: add renderer enum. --- src/resources/ambientlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/ambientlayer.cpp') diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index c619aafd9..6814b0365 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -40,7 +40,7 @@ AmbientLayer::AmbientLayer(Image *const img, const float parallax, if (!mImage) return; - if (keepRatio && !imageHelper->useOpenGL()) + if (keepRatio && imageHelper->useOpenGL() == RENDER_SOFTWARE) { const int width = mainGraphics->mWidth; const int height = mainGraphics->mHeight; @@ -108,7 +108,7 @@ void AmbientLayer::draw(Graphics *const graphics, const int x, if (!mImage) return; - if (!imageHelper->useOpenGL() || !mKeepRatio) + if (imageHelper->useOpenGL() == RENDER_SOFTWARE || !mKeepRatio) { graphics->drawImagePattern(mImage, static_cast(-mPosX), static_cast(-mPosY), x + static_cast(mPosX), -- cgit v1.2.3-70-g09d2