diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-28 13:27:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-28 13:27:26 +0300 |
commit | 8f018529676006ed744138a929fcc621694d6d75 (patch) | |
tree | 03ef706a48100c1bb42a4611add5601844d2cbf5 /src/resources/ambientlayer.cpp | |
parent | ad43ff0ddf9b0484e00db7b7f0930bad975bf21a (diff) | |
download | manaverse-8f018529676006ed744138a929fcc621694d6d75.tar.gz manaverse-8f018529676006ed744138a929fcc621694d6d75.tar.bz2 manaverse-8f018529676006ed744138a929fcc621694d6d75.tar.xz manaverse-8f018529676006ed744138a929fcc621694d6d75.zip |
In renderers replace ImagePattern in methods into Pattern.
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index b74ba96db..622091a39 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -119,13 +119,13 @@ void AmbientLayer::draw(Graphics *const graphics, const int x, if (imageHelper->useOpenGL() == RENDER_SOFTWARE || !mKeepRatio) { - graphics->drawImagePattern(mImage, static_cast<int>(-mPosX), - static_cast<int>(-mPosY), x + static_cast<int>(mPosX), - y + static_cast<int>(mPosY)); + graphics->drawPattern(mImage, static_cast<int>(-mPosX), + static_cast<int>(-mPosY), x + static_cast<int>(mPosX), + y + static_cast<int>(mPosY)); } else { - graphics->drawRescaledImagePattern(mImage, static_cast<int>(-mPosX), + graphics->drawRescaledPattern(mImage, static_cast<int>(-mPosX), static_cast<int>(-mPosY), x + static_cast<int>(mPosX), y + static_cast<int>(mPosY), static_cast<int>(mImage->mBounds.w) |