From 5359b7c20b9ee93989a840e555f0a2102b7bb806 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Sep 2013 17:40:11 +0300 Subject: add SDL2 default render mode. in this mode SDL using own driver with hardware acceleration. --- src/render/sdl2graphics.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/sdl2graphics.h') diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h index f3835e904..383e93540 100644 --- a/src/render/sdl2graphics.h +++ b/src/render/sdl2graphics.h @@ -128,6 +128,9 @@ class SDLGraphics : public Graphics const bool fs, const bool hwaccel, const bool resize, const bool noFrame); + void setRendererFlags(const uint32_t flags) + { mRendererFlags = flags; } + protected: virtual bool drawImage2(const Image *const image, int srcX, int srcY, @@ -135,6 +138,7 @@ class SDLGraphics : public Graphics const int width, const int height, const bool useColor); + uint32_t mRendererFlags; uint32_t mOldPixel; int mOldAlpha; }; -- cgit v1.2.3-70-g09d2