summaryrefslogtreecommitdiff
path: root/src/render/openglgraphics_drawImageRect.hpp
diff options
context:
space:
mode:
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)