From d49a520d19f28c613c68b574686b182a9c0621be Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Jun 2015 18:41:42 +0300 Subject: Add missing checks into resources directory. --- src/resources/subimage.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/resources/subimage.cpp') 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(), -- cgit v1.2.3-70-g09d2