summaryrefslogtreecommitdiff
path: root/src/render/graphics_calcImageRect.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 21:21:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 21:21:40 +0300
commit9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (patch)
tree21df896ff8139745775d41c1c8f82a4c6431698e /src/render/graphics_calcImageRect.hpp
parent96f7714510cba0a84cd749869f236188473c4553 (diff)
downloadmv-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.gz
mv-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.bz2
mv-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.xz
mv-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.zip
add calcPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/graphics_calcImageRect.hpp')
-rw-r--r--src/render/graphics_calcImageRect.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/graphics_calcImageRect.hpp b/src/render/graphics_calcImageRect.hpp
index 403c85ba7..6da74fff0 100644
--- a/src/render/graphics_calcImageRect.hpp
+++ b/src/render/graphics_calcImageRect.hpp
@@ -50,7 +50,7 @@ if (center && drawMain)
{
const int tlw = topLeft->getWidth();
const int tlh = topLeft->getHeight();
- calcPattern(vert, center, tlw + x, tlh + y,
+ calcPatternInline(vert, center, tlw + x, tlh + y,
w - tlw - topRight->getWidth(),
h - tlh - bottomLeft->getHeight());
}
@@ -61,11 +61,11 @@ if (top && left && bottom && right)
const int rw = right->getWidth();
const int th = top->getHeight();
const int bh = bottom->getHeight();
- 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);
+ calcPatternInline(vert, top, x + lw, y, w - lw - rw, th);
+ calcPatternInline(vert, bottom, x + lw, y + h - bh, w - lw - rw, bh);
+ calcPatternInline(vert, left, x, y + th, lw, h - th - bh);
if (w > rw)
- calcPattern(vert, right, x + w - rw, y + th, rw, h - th - bh);
+ calcPatternInline(vert, right, x + w - rw, y + th, rw, h - th - bh);
}
calcTileVertexes(vert, topLeft, x, y);