From bbed1413d3ea2ef67f7fd7db146c372a7181ad43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 20:04:35 +0300 Subject: add calcImageRect into each renderer. but copy function body to shared file. --- src/render/safeopenglgraphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/safeopenglgraphics.h') diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index a6a32771c..5a8d7daa4 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -67,6 +67,11 @@ class SafeOpenGLGraphics final : public Graphics void inline restoreColor(); + void inline calcImageRect(ImageVertexes *const vert, + int x, int y, + int w, int h, + const ImageRect &imgRect); + bool mTexture; bool mIsByteColor; gcn::Color mByteColor; -- cgit v1.2.3-60-g2f50