From 93a30ec5dd65df6f91e028e68f18d6a7965240da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 10 Dec 2015 01:28:03 +0300 Subject: Add support for mobileopengl2 backend (still copy from modern opengl). --- src/resources/ambientlayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resources/ambientlayer.cpp') 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(-mPosX), static_cast(-mPosY), x + static_cast(mPosX), -- cgit v1.2.3-60-g2f50