summaryrefslogtreecommitdiff
path: root/src/resources/subimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r--src/resources/subimage.cpp12
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(),