From 080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 22:05:55 +0300 Subject: add calcTileVertexesInline into renders for internal usage. --- src/render/normalopenglgraphics.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/render/normalopenglgraphics.cpp') diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index c2b702fa8..0ab2e88fa 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -895,11 +895,11 @@ void NormalOpenGLGraphics::calcTileCollection(ImageCollection *const vertCol, vertCol->currentVert = vert; vert->image = image; vertCol->draws.push_back(vert); - calcTileVertexes(vert, image, x, y); + calcTileVertexesInline(vert, image, x, y); } else { - calcTileVertexes(vertCol->currentVert, image, x, y); + calcTileVertexesInline(vertCol->currentVert, image, x, y); } } @@ -948,6 +948,13 @@ void NormalOpenGLGraphics::calcPattern(ImageCollection* const vertCol, void NormalOpenGLGraphics::calcTileVertexes(ImageVertexes *const vert, const Image *const image, int dstX, int dstY) const +{ + calcTileVertexesInline(vert, image, dstX, dstY); +} + +void NormalOpenGLGraphics::calcTileVertexesInline(ImageVertexes *const vert, + const Image *const image, + int dstX, int dstY) const { if (!vert || !image) return; -- cgit v1.2.3-60-g2f50