summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.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/sdl2softwaregraphics.cpp
parentad43ff0ddf9b0484e00db7b7f0930bad975bf21a (diff)
downloadmv-8f018529676006ed744138a929fcc621694d6d75.tar.gz
mv-8f018529676006ed744138a929fcc621694d6d75.tar.bz2
mv-8f018529676006ed744138a929fcc621694d6d75.tar.xz
mv-8f018529676006ed744138a929fcc621694d6d75.zip
In renderers replace ImagePattern in methods into Pattern.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r--src/render/sdl2softwaregraphics.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp
index 7556bc5ac..e4e3d822f 100644
--- a/src/render/sdl2softwaregraphics.cpp
+++ b/src/render/sdl2softwaregraphics.cpp
@@ -203,11 +203,11 @@ bool SDL2SoftwareGraphics::drawImage2(const Image *const image,
return 0;
}
-void SDL2SoftwareGraphics::drawImagePattern(const Image *const image,
- const int x, const int y,
- const int w, const int h)
+void SDL2SoftwareGraphics::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 (!mSurface || !image)
return;
@@ -313,11 +313,11 @@ void SDL2SoftwareGraphics::drawImagePattern(const Image *const image,
}
}
-void SDL2SoftwareGraphics::drawRescaledImagePattern(const Image *const image,
- const int x, const int y,
- const int w, const int h,
- const int scaledWidth,
- const int scaledHeight)
+void SDL2SoftwareGraphics::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 (!mSurface || !image)
@@ -379,10 +379,10 @@ void SDL2SoftwareGraphics::drawRescaledImagePattern(const Image *const image,
delete tmpImage;
}
-void SDL2SoftwareGraphics::calcImagePattern(ImageVertexes* const vert,
- const Image *const image,
- const int x, const int y,
- const int w, const int h) const
+void SDL2SoftwareGraphics::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 || !mSurface || !image || !image->mSDLSurface)
@@ -433,10 +433,10 @@ void SDL2SoftwareGraphics::calcImagePattern(ImageVertexes* const vert,
}
}
-void SDL2SoftwareGraphics::calcImagePattern(ImageCollection* const vertCol,
- const Image *const image,
- const int x, const int y,
- const int w, const int h) const
+void SDL2SoftwareGraphics::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)