diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-01 23:38:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-01 23:38:52 +0300 |
commit | 987141c4340c508b14ec085f977754bb48dcfe0e (patch) | |
tree | bcf9b747ebdf79a4c45a9d19a4c22725d48f4b99 /src/render/sdl2softwaregraphics.h | |
parent | 2ab3f0d8d04374b330c91a9f065efa0f526d7824 (diff) | |
download | manaplus-987141c4340c508b14ec085f977754bb48dcfe0e.tar.gz manaplus-987141c4340c508b14ec085f977754bb48dcfe0e.tar.bz2 manaplus-987141c4340c508b14ec085f977754bb48dcfe0e.tar.xz manaplus-987141c4340c508b14ec085f977754bb48dcfe0e.zip |
improve speed in software renderer in SDL2.
now it works almost with same speed like SDL1.2
Diffstat (limited to 'src/render/sdl2softwaregraphics.h')
-rw-r--r-- | src/render/sdl2softwaregraphics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h index 7ddba5018..9fd53909d 100644 --- a/src/render/sdl2softwaregraphics.h +++ b/src/render/sdl2softwaregraphics.h @@ -131,6 +131,8 @@ class SDL2SoftwareGraphics : public Graphics void setRendererFlags(const uint32_t flags) { mRendererFlags = flags; } + bool resizeScreen(const int width, const int height); + protected: virtual bool drawImage2(const Image *const image, int srcX, int srcY, |