summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/image.h2
-rw-r--r--src/resources/subimage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index f10734ba4..e4e41b914 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -200,7 +200,7 @@ class Image : public Resource
// -----------------------
/** SDL Constructor */
- Image(SDL_Surface *const image, const bool hasAlphaChannel = false,
+ Image(SDL_Surface *const image, const bool hasAlphaChannel,
uint8_t *const alphaChannel = nullptr);
#ifdef USE_SDL2
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp
index ee13777b1..520a37fe9 100644
--- a/src/resources/subimage.cpp
+++ b/src/resources/subimage.cpp
@@ -84,7 +84,7 @@ SubImage::SubImage(Image *const parent, SDL_Texture *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),
+ Image(image, false),
mInternalBounds(),
mParent(parent)
{