diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
commit | af374aa2b2944749193af49cdca28532cf56fae2 (patch) | |
tree | b3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/resources/ambientlayer.cpp | |
parent | 00cda69b883d6354f093be6ee39a7936cb798979 (diff) | |
download | manaverse-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz manaverse-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2 manaverse-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz manaverse-af374aa2b2944749193af49cdca28532cf56fae2.zip |
add renderer enum.
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>(-mPosX), static_cast<int>(-mPosY), x + static_cast<int>(mPosX), |