summaryrefslogtreecommitdiff
path: root/src/render/openglgraphics_drawImageRect.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 18:45:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 18:45:00 +0300
commite29a87a240fe2f33c51f4e15067122960f667d66 (patch)
treeec58d6c28e3ce18966b32495df860bc85aa94f87 /src/render/openglgraphics_drawImageRect.hpp
parent00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e (diff)
downloadmv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.gz
mv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.bz2
mv-e29a87a240fe2f33c51f4e15067122960f667d66.tar.xz
mv-e29a87a240fe2f33c51f4e15067122960f667d66.zip
add drawPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/openglgraphics_drawImageRect.hpp')
-rw-r--r--src/render/openglgraphics_drawImageRect.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/openglgraphics_drawImageRect.hpp b/src/render/openglgraphics_drawImageRect.hpp
index 734bc8b83..5c4bba0a1 100644
--- a/src/render/openglgraphics_drawImageRect.hpp
+++ b/src/render/openglgraphics_drawImageRect.hpp
@@ -46,7 +46,7 @@ if (center && drawMain)
{
const int tlw = topLeft->getWidth();
const int tlh = topLeft->getHeight();
- drawPattern(center, tlw + x, tlh + y,
+ drawPatternInline(center, tlw + x, tlh + y,
w - tlw - topRight->getWidth(),
h - tlh - bottomLeft->getHeight());
}
@@ -58,11 +58,11 @@ if (top && left && bottom && right)
const int rw = right->getWidth();
const int th = top->getHeight();
const int bh = bottom->getHeight();
- 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);
+ drawPatternInline(top, x + lw, y, w - lw - rw, th);
+ drawPatternInline(bottom, x + lw, h - bh + y, w - lw - rw, bh);
+ drawPatternInline(left, x, y + th, lw, h - th - bh);
if (w > rw)
- drawPattern(right, x + w - rw, th + y, rw, h - th - bh);
+ drawPatternInline(right, x + w - rw, th + y, rw, h - th - bh);
}
// Draw the corners
if (drawMain)