diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-24 18:41:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 22:08:24 +0300 |
commit | d49a520d19f28c613c68b574686b182a9c0621be (patch) | |
tree | 5b6943125fd364eaaaaa295b45100cdfc473dd93 /src/resources/subimage.cpp | |
parent | 14f55eb8c6e44763e70046b9661bd056280226a5 (diff) | |
download | mv-d49a520d19f28c613c68b574686b182a9c0621be.tar.gz mv-d49a520d19f28c613c68b574686b182a9c0621be.tar.bz2 mv-d49a520d19f28c613c68b574686b182a9c0621be.tar.xz mv-d49a520d19f28c613c68b574686b182a9c0621be.zip |
Add missing checks into resources directory.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r-- | src/resources/subimage.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp index 9ab4a55fe..0d5cf8c8a 100644 --- a/src/resources/subimage.cpp +++ b/src/resources/subimage.cpp @@ -29,7 +29,8 @@ #include "debug.h" #ifdef USE_SDL2 -SubImage::SubImage(Image *const parent, SDL_Texture *const image, +SubImage::SubImage(Image *const parent, + SDL_Texture *const image, const int x, const int y, const int width, const int height) : Image(image, width, height), @@ -81,7 +82,8 @@ SubImage::SubImage(Image *const parent, SDL_Texture *const image, } #endif -SubImage::SubImage(Image *const parent, SDL_Surface *const image, +SubImage::SubImage(Image *const parent, + SDL_Surface *const image, const int x, const int y, const int width, const int height) : Image(image, false), @@ -134,8 +136,10 @@ SubImage::SubImage(Image *const parent, SDL_Surface *const image, } #ifdef USE_OPENGL -SubImage::SubImage(Image *const parent, const GLuint image, - const int x, const int y, const int width, const int height, +SubImage::SubImage(Image *const parent, + const GLuint image, + const int x, const int y, + const int width, const int height, const int texWidth, const int texHeight) : Image(image, width, height, texWidth, texHeight), mInternalBounds(), |