src/video/SDL_bmp.c
changeset 9563 537881242756
parent 9336 1a1ec75b608c
child 9619 b94b6d0bff0f
     1.1 --- a/src/video/SDL_bmp.c	Thu Apr 16 22:02:03 2015 +0200
     1.2 +++ b/src/video/SDL_bmp.c	Thu Apr 16 22:04:35 2015 +0200
     1.3 @@ -531,6 +531,10 @@
     1.4                               format.BitsPerPixel);
     1.5              }
     1.6          }
     1.7 +    } else {
     1.8 +        /* Set no error here because it may overwrite a more useful message from
     1.9 +           SDL_RWFromFile() if SDL_SaveBMP_RW() is called from SDL_SaveBMP(). */
    1.10 +        return -1;
    1.11      }
    1.12  
    1.13      if (surface && (SDL_LockSurface(surface) == 0)) {