diff src/video/SDL_bmp.c @ 1670:eef792d31de8 SDL-1.3

Work in progress. :)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 07 Jun 2006 16:10:28 +0000
parents 4da1ee79c9af
children 396a35389351
line wrap: on
line diff
--- a/src/video/SDL_bmp.c	Mon May 29 05:08:33 2006 +0000
+++ b/src/video/SDL_bmp.c	Wed Jun 07 16:10:28 2006 +0000
@@ -203,9 +203,9 @@
     }
 
     /* Create a compatible surface, note that the colors are RGB ordered */
-    surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
-                                   biWidth, biHeight, biBitCount, Rmask,
-                                   Gmask, Bmask, 0);
+    surface =
+        SDL_CreateRGBSurface(0, biWidth, biHeight, biBitCount, Rmask, Gmask,
+                             Bmask, 0);
     if (surface == NULL) {
         was_error = 1;
         goto done;
@@ -386,8 +386,7 @@
             SDL_Rect bounds;
 
             /* Convert to 24 bits per pixel */
-            surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
-                                           saveme->w, saveme->h, 24,
+            surface = SDL_CreateRGBSurface(0, saveme->w, saveme->h, 24,
 #if SDL_BYTEORDER == SDL_LIL_ENDIAN
                                            0x00FF0000, 0x0000FF00, 0x000000FF,
 #else