Skip to content

Commit

Permalink
Updated to the latest version of SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
NilEis committed Jul 17, 2024
1 parent a5e918f commit 7dff01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMG.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ SDL_Surface *IMG_LoadTyped_IO(SDL_IOStream *src, SDL_bool closeio, const char *t

#ifdef __EMSCRIPTEN__
/*load through preloadedImages*/
FILE *fp = (FILE *)SDL_GetProperty(SDL_GetIOProperties(src), SDL_PROP_IOSTREAM_STDIO_FILE_POINTER, NULL);
FILE *fp = (FILE *)SDL_GetPointerProperty(SDL_GetIOProperties(src), SDL_PROP_IOSTREAM_STDIO_FILE_POINTER, NULL);
if (fp) {
int w, h, success;
char *data;
Expand Down

0 comments on commit 7dff01d

Please sign in to comment.