summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r--src/render/sdl2graphics.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp
index 979de3c31..6426506ee 100644
--- a/src/render/sdl2graphics.cpp
+++ b/src/render/sdl2graphics.cpp
@@ -149,11 +149,11 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY,
return !MSDL_RenderCopy(mRenderer, image->mTexture, &srcRect, &dstRect);
}
-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;
@@ -196,11 +196,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)
@@ -254,10 +254,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->mTexture)
@@ -304,10 +304,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)
@@ -323,7 +323,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,