changeset 1601:a3023fe79c43

Change dmConvertScaledSurface() interface by remove flags.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 09:44:21 +0300
parents e28e67358ff6
children 096767827bb8
files src/dmblit.c src/dmlib.h
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
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;
 
--- 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