more sdl upgrade changes
This commit is contained in:
@ -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 {};
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ ImageLoaderSDLImage::ImageInfo ImageLoaderSDLImage::loadInfoFromMemory(const uin
|
||||
return res;
|
||||
}
|
||||
|
||||
SDL_Surface* surf = IMG_Load_IO(ios, SDL_TRUE);
|
||||
SDL_Surface* surf = IMG_Load_IO(ios, true);
|
||||
if (surf == nullptr) {
|
||||
return res;
|
||||
}
|
||||
@ -83,7 +83,7 @@ ImageLoaderSDLImage::ImageResult ImageLoaderSDLImage::loadFromMemoryRGBA(const u
|
||||
return res;
|
||||
}
|
||||
|
||||
IMG_Animation* anim = IMG_LoadAnimation_IO(ios, SDL_TRUE);
|
||||
IMG_Animation* anim = IMG_LoadAnimation_IO(ios, true);
|
||||
if (anim == nullptr) {
|
||||
return res;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
static const char* clipboardHas(const std::vector<std::string_view>& filter_mime_types) {
|
||||
for (const auto& mime_type : filter_mime_types) {
|
||||
// ASSERTS that stringview is null terminated
|
||||
if (SDL_HasClipboardData(mime_type.data()) == SDL_TRUE) {
|
||||
if (SDL_HasClipboardData(mime_type.data())) {
|
||||
return mime_type.data();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user