From 6205783e6ac38a17ab6a06ba8d2a480a0d8de98a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 14:53:26 +0300 Subject: remove default parameter from Image constructor. --- src/resources/image.h | 2 +- src/resources/subimage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources') 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) { -- cgit v1.2.3-60-g2f50