diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 18:45:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 18:45:00 +0300 |
commit | e29a87a240fe2f33c51f4e15067122960f667d66 (patch) | |
tree | ec58d6c28e3ce18966b32495df860bc85aa94f87 /src/render/openglgraphics_drawImageRect.hpp | |
parent | 00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e (diff) | |
download | plus-e29a87a240fe2f33c51f4e15067122960f667d66.tar.gz plus-e29a87a240fe2f33c51f4e15067122960f667d66.tar.bz2 plus-e29a87a240fe2f33c51f4e15067122960f667d66.tar.xz plus-e29a87a240fe2f33c51f4e15067122960f667d66.zip |
add drawPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/openglgraphics_drawImageRect.hpp')
-rw-r--r-- | src/render/openglgraphics_drawImageRect.hpp | 10 |
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) |