Skip to content

Commit 2a27018

Browse files
committed
Updated to the latest version of SDL
Fixes libsdl-org#459
1 parent 8abc07d commit 2a27018

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

external/SDL

Submodule SDL updated 496 files

src/IMG_avif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ SDL_Surface *IMG_LoadAVIF_IO(SDL_IOStream *src)
468468
image->transferCharacteristics,
469469
SDL_MATRIX_COEFFICIENTS_IDENTITY,
470470
SDL_CHROMA_LOCATION_NONE);
471-
SDL_SetNumberProperty(props, SDL_PROP_SURFACE_COLORSPACE_NUMBER, colorspace);
471+
SDL_SetSurfaceColorspace(surface, colorspace);
472472
if (image->clli.maxCLL > 0) {
473473
maxCLL = image->clli.maxCLL;
474474
SDL_SetNumberProperty(props, SDL_PROP_SURFACE_MAXCLL_NUMBER, image->clli.maxCLL);
@@ -537,8 +537,8 @@ static int IMG_SaveAVIF_IO_libavif(SDL_Surface *surface, SDL_IOStream *dst, int
537537
}
538538

539539
/* Get the colorspace and light level properties, if any */
540+
colorspace = SDL_GetSurfaceColorspace(surface);
540541
props = SDL_GetSurfaceProperties(surface);
541-
colorspace = (SDL_Colorspace)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_COLORSPACE_NUMBER, SDL_COLORSPACE_RGB_DEFAULT);
542542
maxCLL = (Uint16)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_MAXCLL_NUMBER, 0);
543543
maxFALL = (Uint16)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_MAXFALL_NUMBER, 0);
544544

0 commit comments

Comments
 (0)