فهرست منبع

Fixed build after d0bbfdbfb881e5407911d84c12899bd5b442a130

Sam Lantinga 3 سال پیش
والد
کامیت
42238f88ea
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/video/SDL_bmp.c

+ 2 - 2
src/video/SDL_bmp.c

@@ -697,8 +697,8 @@ int SDL_SaveBMP_RW(SDL_Surface *surface, SDL_RWops *dst, int freedst)
             } else {
                 SDL_InitFormat(&format, SDL_PIXELFORMAT_BGR24);
             }
-            surface = SDL_ConvertSurface(saveme, &format, 0);
-            if (surface == NULL) {
+            intermediate_surface = SDL_ConvertSurface(surface, &format, 0);
+            if (intermediate_surface == NULL) {
                 SDL_SetError("Couldn't convert image to %d bpp",
                              format.BitsPerPixel);
             }