summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-28 13:27:26 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-28 13:27:26 +0300
commit8f018529676006ed744138a929fcc621694d6d75 (patch)
tree03ef706a48100c1bb42a4611add5601844d2cbf5 /src/resources/ambientlayer.cpp
parentad43ff0ddf9b0484e00db7b7f0930bad975bf21a (diff)
downloadmanaplus-8f018529676006ed744138a929fcc621694d6d75.tar.gz
manaplus-8f018529676006ed744138a929fcc621694d6d75.tar.bz2
manaplus-8f018529676006ed744138a929fcc621694d6d75.tar.xz
manaplus-8f018529676006ed744138a929fcc621694d6d75.zip
In renderers replace ImagePattern in methods into Pattern.
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp8
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)