# HG changeset patch # User Matti Hamalainen # Date 1526280261 -10800 # Node ID a3023fe79c43a376d67a6a30bc11cdb958f64c58 # Parent e28e67358ff6ce0c331facb2c04f0229487a3892 Change dmConvertScaledSurface() interface by remove flags. diff -r e28e67358ff6 -r a3023fe79c43 src/dmblit.c --- a/src/dmblit.c Mon May 14 08:47:19 2018 +0300 +++ b/src/dmblit.c Mon May 14 09:44:21 2018 +0300 @@ -237,10 +237,13 @@ } -SDL_Surface *dmConvertScaledSurface(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags, const int dwidth, const int dheight) +SDL_Surface *dmConvertScaledSurface(SDL_Surface *src, SDL_PixelFormat *fmt, const int dwidth, const int dheight) { // Create the target surface - SDL_Surface *result = SDL_CreateRGBSurface(flags, dwidth, dheight, fmt->BitsPerPixel, fmt->Rmask, fmt->Gmask, fmt->Bmask, fmt->Amask); + SDL_Surface *result = SDL_CreateRGBSurface( + 0, dwidth, dheight, fmt->BitsPerPixel, + fmt->Rmask, fmt->Gmask, fmt->Bmask, fmt->Amask); + if (result == NULL) return NULL; diff -r e28e67358ff6 -r a3023fe79c43 src/dmlib.h --- a/src/dmlib.h Mon May 14 08:47:19 2018 +0300 +++ b/src/dmlib.h Mon May 14 09:44:21 2018 +0300 @@ -313,7 +313,7 @@ DMUnscaledBlitFunc dmGetUnscaledBlitFunc(SDL_PixelFormat *src, SDL_PixelFormat *dst, int mode); int dmUnscaledBlitSurfaceAny(SDL_Surface *src, const int x0, const int y0, SDL_Surface *dst, int mode); -SDL_Surface *dmConvertScaledSurface(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags, const int dwidth, const int dheight); +SDL_Surface *dmConvertScaledSurface(SDL_Surface *src, SDL_PixelFormat *fmt, const int dwidth, const int dheight); #define DM_HEADER