Skip to content

Commit

Permalink
Updated to the latest version of SDL
Browse files Browse the repository at this point in the history
Fixes #459
  • Loading branch information
slouken committed Jul 26, 2024
1 parent 8abc07d commit 2a27018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/SDL
Submodule SDL updated 496 files
4 changes: 2 additions & 2 deletions src/IMG_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ SDL_Surface *IMG_LoadAVIF_IO(SDL_IOStream *src)
image->transferCharacteristics,
SDL_MATRIX_COEFFICIENTS_IDENTITY,
SDL_CHROMA_LOCATION_NONE);
SDL_SetNumberProperty(props, SDL_PROP_SURFACE_COLORSPACE_NUMBER, colorspace);
SDL_SetSurfaceColorspace(surface, colorspace);
if (image->clli.maxCLL > 0) {
maxCLL = image->clli.maxCLL;
SDL_SetNumberProperty(props, SDL_PROP_SURFACE_MAXCLL_NUMBER, image->clli.maxCLL);
Expand Down Expand Up @@ -537,8 +537,8 @@ static int IMG_SaveAVIF_IO_libavif(SDL_Surface *surface, SDL_IOStream *dst, int
}

/* Get the colorspace and light level properties, if any */
colorspace = SDL_GetSurfaceColorspace(surface);
props = SDL_GetSurfaceProperties(surface);
colorspace = (SDL_Colorspace)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_COLORSPACE_NUMBER, SDL_COLORSPACE_RGB_DEFAULT);
maxCLL = (Uint16)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_MAXCLL_NUMBER, 0);
maxFALL = (Uint16)SDL_GetNumberProperty(props, SDL_PROP_SURFACE_MAXFALL_NUMBER, 0);

Expand Down

0 comments on commit 2a27018

Please sign in to comment.