more sdl upgrade changes

This commit is contained in:
2024-10-05 15:44:29 +02:00
parent abd95b949f
commit 9402ff666f
6 changed files with 16 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ ImageLoaderSDLBMP::ImageInfo ImageLoaderSDLBMP::loadInfoFromMemory(const uint8_t
auto* ios = SDL_IOFromConstMem(data, data_size);
SDL_Surface* surf = SDL_LoadBMP_IO(ios, SDL_TRUE);
SDL_Surface* surf = SDL_LoadBMP_IO(ios, true);
if (surf == nullptr) {
return res;
}
@@ -31,7 +31,7 @@ ImageLoaderSDLBMP::ImageResult ImageLoaderSDLBMP::loadFromMemoryRGBA(const uint8
auto* ios = SDL_IOFromConstMem(data, data_size);
SDL_Surface* surf = SDL_LoadBMP_IO(ios, SDL_TRUE);
SDL_Surface* surf = SDL_LoadBMP_IO(ios, true);
if (surf == nullptr) {
return {};
}