summaryrefslogtreecommitdiff
path: root/src/render/graphics.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/graphics.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/graphics.cpp')
-rw-r--r--src/render/graphics.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index fc8be7509..83e5a45bf 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -474,7 +474,7 @@ void Graphics::drawImageRect(const int x, const int y,
{
const int tlw = topLeft->getWidth();
const int tlh = topLeft->getHeight();
- drawImagePattern(center, tlw + x, tlh + y,
+ drawPattern(center, tlw + x, tlh + y,
w - tlw - topRight->getWidth(),
h - tlh - bottomLeft->getHeight());
}
@@ -486,11 +486,11 @@ void Graphics::drawImageRect(const int x, const int y,
const int rw = right->getWidth();
const int th = top->getHeight();
const int bh = bottom->getHeight();
- drawImagePattern(top, x + lw, y, w - lw - rw, th);
- drawImagePattern(bottom, x + lw, h - bh + y, w - lw - rw, bh);
- drawImagePattern(left, x, y + th, lw, h - th - bh);
+ drawPattern(top, x + lw, y, w - lw - rw, th);
+ drawPattern(bottom, x + lw, h - bh + y, w - lw - rw, bh);
+ drawPattern(left, x, y + th, lw, h - th - bh);
if (w > rw)
- drawImagePattern(right, x + w - rw, th + y, rw, h - th - bh);
+ drawPattern(right, x + w - rw, th + y, rw, h - th - bh);
}
// Draw the corners
if (drawMain)
@@ -561,7 +561,7 @@ bool Graphics::calcImageRect(ImageVertexes *const vert,
{
const int tlw = topLeft->getWidth();
const int tlh = topLeft->getHeight();
- calcImagePattern(vert, center, tlw + x, tlh + y,
+ calcPattern(vert, center, tlw + x, tlh + y,
w - tlw - topRight->getWidth(),
h - tlh - bottomLeft->getHeight());
}
@@ -572,11 +572,11 @@ bool Graphics::calcImageRect(ImageVertexes *const vert,
const int rw = right->getWidth();
const int th = top->getHeight();
const int bh = bottom->getHeight();
- calcImagePattern(vert, top, x + lw, y, w - lw - rw, th);
- calcImagePattern(vert, bottom, x + lw, y + h - bh, w - lw - rw, bh);
- calcImagePattern(vert, left, x, y + th, lw, h - th - bh);
+ calcPattern(vert, top, x + lw, y, w - lw - rw, th);
+ calcPattern(vert, bottom, x + lw, y + h - bh, w - lw - rw, bh);
+ calcPattern(vert, left, x, y + th, lw, h - th - bh);
if (w > rw)
- calcImagePattern(vert, right, x + w - rw, y + th, rw, h - th - bh);
+ calcPattern(vert, right, x + w - rw, y + th, rw, h - th - bh);
}
calcTileVertexes(vert, topLeft, x, y);