summaryrefslogtreecommitdiff
path: root/src/render/graphics_drawImageRect.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
commitb85fd67fb14f6a49c7e71f2265254150ba7a1240 (patch)
treeba4b7d4eb86b84753580885d067783d6bb4b1968 /src/render/graphics_drawImageRect.hpp
parent080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b (diff)
downloadplus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.gz
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.bz2
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.xz
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.zip
add drawImageInline into renders for internal usage.
Diffstat (limited to 'src/render/graphics_drawImageRect.hpp')
-rw-r--r--src/render/graphics_drawImageRect.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/graphics_drawImageRect.hpp b/src/render/graphics_drawImageRect.hpp
index 5c4bba0a1..28157fafd 100644
--- a/src/render/graphics_drawImageRect.hpp
+++ b/src/render/graphics_drawImageRect.hpp
@@ -67,15 +67,15 @@ if (top && left && bottom && right)
// Draw the corners
if (drawMain)
{
- drawImage2(topLeft, x, y);
+ drawImageInline(topLeft, x, y);
const int trw = topRight->getWidth();
if (w > trw)
- drawImage2(topRight, x + w - trw, y);
- drawImage2(bottomLeft, x, h - bottomLeft->getHeight() + y);
+ drawImageInline(topRight, x + w - trw, y);
+ drawImageInline(bottomLeft, x, h - bottomLeft->getHeight() + y);
const int brw = bottomRight->getWidth();
if (w > brw)
{
- drawImage2(bottomRight,
+ drawImageInline(bottomRight,
x + w - brw,
y + h - bottomRight->getHeight());
}