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/sdl2graphics.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/render/sdl2graphics.h') diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h index 25a3a74b3..b7e430f16 100644 --- a/src/render/sdl2graphics.h +++ b/src/render/sdl2graphics.h @@ -115,7 +115,7 @@ class SDLGraphics final : public Graphics const int x2, const int y2, const int width, const int height) override final; - bool calcWindow(ImageCollection *const vertCol, + void calcWindow(ImageCollection *const vertCol, const int x, const int y, const int w, const int h, const ImageRect &imgRect) override final; @@ -162,6 +162,12 @@ class SDLGraphics final : public Graphics uint32_t mOldPixel; int mOldAlpha; + private: + void inline calcImageRect(ImageVertexes *const vert, + int x, int y, + int w, int h, + const ImageRect &imgRect); + }; #endif // USE_SDL2 -- cgit v1.2.3-70-g09d2