mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-01 13:00:25 +00:00
Fixed build after d0bbfdbfb8
This commit is contained in:
parent
d0bbfdbfb8
commit
42238f88ea
|
@ -697,8 +697,8 @@ int SDL_SaveBMP_RW(SDL_Surface *surface, SDL_RWops *dst, int freedst)
|
||||||
} else {
|
} else {
|
||||||
SDL_InitFormat(&format, SDL_PIXELFORMAT_BGR24);
|
SDL_InitFormat(&format, SDL_PIXELFORMAT_BGR24);
|
||||||
}
|
}
|
||||||
surface = SDL_ConvertSurface(saveme, &format, 0);
|
intermediate_surface = SDL_ConvertSurface(surface, &format, 0);
|
||||||
if (surface == NULL) {
|
if (intermediate_surface == NULL) {
|
||||||
SDL_SetError("Couldn't convert image to %d bpp",
|
SDL_SetError("Couldn't convert image to %d bpp",
|
||||||
format.BitsPerPixel);
|
format.BitsPerPixel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue