Mercurial > hg > dmlib
diff src/dmblit.c @ 1601:a3023fe79c43
Change dmConvertScaledSurface() interface by remove flags.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 May 2018 09:44:21 +0300 |
parents | e06abfde6c39 |
children |
line wrap: on
line diff
--- 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;