summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.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/render/sdlgraphics.cpp
parentad43ff0ddf9b0484e00db7b7f0930bad975bf21a (diff)
downloadManaVerse-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/render/sdlgraphics.cpp')
-rw-r--r--src/render/sdlgraphics.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp
index 52439f1c3..f62d9dd56 100644
--- a/src/render/sdlgraphics.cpp
+++ b/src/render/sdlgraphics.cpp
@@ -194,11 +194,11 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY,
return 0;
}
-void SDLGraphics::drawImagePattern(const Image *const image,
- const int x, const int y,
- const int w, const int h)
+void SDLGraphics::drawPattern(const Image *const image,
+ const int x, const int y,
+ const int w, const int h)
{
- FUNC_BLOCK("Graphics::drawImagePattern", 1)
+ FUNC_BLOCK("Graphics::drawPattern", 1)
// Check that preconditions for blitting are met.
if (!mWindow || !image)
return;
@@ -304,11 +304,11 @@ void SDLGraphics::drawImagePattern(const Image *const image,
}
}
-void SDLGraphics::drawRescaledImagePattern(const Image *const image,
- const int x, const int y,
- const int w, const int h,
- const int scaledWidth,
- const int scaledHeight)
+void SDLGraphics::drawRescaledPattern(const Image *const image,
+ const int x, const int y,
+ const int w, const int h,
+ const int scaledWidth,
+ const int scaledHeight)
{
// Check that preconditions for blitting are met.
if (!mWindow || !image)
@@ -370,10 +370,10 @@ void SDLGraphics::drawRescaledImagePattern(const Image *const image,
delete tmpImage;
}
-void SDLGraphics::calcImagePattern(ImageVertexes* const vert,
- const Image *const image,
- const int x, const int y,
- const int w, const int h) const
+void SDLGraphics::calcPattern(ImageVertexes* const vert,
+ const Image *const image,
+ const int x, const int y,
+ const int w, const int h) const
{
// Check that preconditions for blitting are met.
if (!vert || !mWindow || !image || !image->mSDLSurface)
@@ -424,10 +424,10 @@ void SDLGraphics::calcImagePattern(ImageVertexes* const vert,
}
}
-void SDLGraphics::calcImagePattern(ImageCollection* const vertCol,
- const Image *const image,
- const int x, const int y,
- const int w, const int h) const
+void SDLGraphics::calcPattern(ImageCollection* const vertCol,
+ const Image *const image,
+ const int x, const int y,
+ const int w, const int h) const
{
ImageVertexes *vert = nullptr;
if (vertCol->currentImage != image)
@@ -443,7 +443,7 @@ void SDLGraphics::calcImagePattern(ImageCollection* const vertCol,
vert = vertCol->currentVert;
}
- calcImagePattern(vert, image, x, y, w, h);
+ calcPattern(vert, image, x, y, w, h);
}
void SDLGraphics::calcTileVertexes(ImageVertexes *const vert,