summaryrefslogtreecommitdiff
path: root/src/resources/sdl2imagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-01 21:57:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-01 21:57:46 +0300
commit62e2ccbb158f146e2c3ceab14ff5581d3f3975ef (patch)
tree736e615b6ff94e09144df7df3aa06f9f231743ff /src/resources/sdl2imagehelper.h
parentd3b57bd96a07a674432fd28cefd2f20ae5404b8b (diff)
downloadmv-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.gz
mv-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.bz2
mv-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.xz
mv-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.zip
Add to image helper function to copy surface into part of image.
Diffstat (limited to 'src/resources/sdl2imagehelper.h')
-rw-r--r--src/resources/sdl2imagehelper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h
index e7ddc2987..f59a6bee1 100644
--- a/src/resources/sdl2imagehelper.h
+++ b/src/resources/sdl2imagehelper.h
@@ -62,6 +62,11 @@ class SDLImageHelper final : public ImageHelper
const float alpha)
override final A_WARN_UNUSED;
+ void copySurfaceToImage(Image *const image,
+ const int x, const int y,
+ SDL_Surface *const surface)
+ const override final;
+
static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }