Support loading JPEG images through SDL_LoadSurface()

This commit is contained in:
Cameron Cawley
2026-05-13 20:51:02 +01:00
committed by Sam Lantinga
parent 9672f5b68b
commit c6b232f5d4
8 changed files with 175 additions and 6 deletions

View File

@@ -1285,3 +1285,5 @@ _SDL_SetGPURenderStateStorageBuffers
_SDL_GDKSuspendRenderer
_SDL_GDKResumeRenderer
_SDL_IsPhone
_SDL_LoadJPG_IO
_SDL_LoadJPG

View File

@@ -1286,6 +1286,8 @@ SDL3_0.0.0 {
SDL_GDKSuspendRenderer;
SDL_GDKResumeRenderer;
SDL_IsPhone;
SDL_LoadJPG_IO;
SDL_LoadJPG;
# extra symbols go here (don't modify this line)
local: *;
};

View File

@@ -1312,3 +1312,5 @@
#define SDL_GDKSuspendRenderer SDL_GDKSuspendRenderer_REAL
#define SDL_GDKResumeRenderer SDL_GDKResumeRenderer_REAL
#define SDL_IsPhone SDL_IsPhone_REAL
#define SDL_LoadJPG_IO SDL_LoadJPG_IO_REAL
#define SDL_LoadJPG SDL_LoadJPG_REAL

View File

@@ -1320,3 +1320,5 @@ SDL_DYNAPI_PROC(bool,SDL_SetGPURenderStateStorageBuffers,(SDL_GPURenderState *a,
SDL_DYNAPI_PROC(void,SDL_GDKSuspendRenderer,(SDL_Renderer *a),(a),)
SDL_DYNAPI_PROC(void,SDL_GDKResumeRenderer,(SDL_Renderer *a),(a),)
SDL_DYNAPI_PROC(bool,SDL_IsPhone,(void),(),return)
SDL_DYNAPI_PROC(SDL_Surface*,SDL_LoadJPG_IO,(SDL_IOStream *a,bool b),(a,b),return)
SDL_DYNAPI_PROC(SDL_Surface*,SDL_LoadJPG,(const char *a),(a),return)