diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-10 01:28:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-10 01:33:59 +0300 |
commit | 93a30ec5dd65df6f91e028e68f18d6a7965240da (patch) | |
tree | f2a7908d565dd1e6f856e8c058fbc40f50dbb1cb /src/resources/ambientlayer.cpp | |
parent | 07daba6efa05a59271ce4173a2b500b27773e523 (diff) | |
download | mv-93a30ec5dd65df6f91e028e68f18d6a7965240da.tar.gz mv-93a30ec5dd65df6f91e028e68f18d6a7965240da.tar.bz2 mv-93a30ec5dd65df6f91e028e68f18d6a7965240da.tar.xz mv-93a30ec5dd65df6f91e028e68f18d6a7965240da.zip |
Add support for mobileopengl2 backend (still copy from modern opengl).
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index 454758e88..e03068a2b 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -51,7 +51,8 @@ AmbientLayer::AmbientLayer(Image *const img, if (!mImage) return; - if (keepRatio && imageHelper->useOpenGL() == RENDER_SOFTWARE) + if (keepRatio && + imageHelper->useOpenGL() == RENDER_SOFTWARE) { const int width = mainGraphics->mWidth; const int height = mainGraphics->mHeight; @@ -121,7 +122,8 @@ void AmbientLayer::draw(Graphics *const graphics, const int x, if (!mImage) return; - if (imageHelper->useOpenGL() == RENDER_SOFTWARE || !mKeepRatio) + if (imageHelper->useOpenGL() == RENDER_SOFTWARE || + !mKeepRatio) { graphics->drawPattern(mImage, static_cast<int>(-mPosX), static_cast<int>(-mPosY), x + static_cast<int>(mPosX), |