@@ -70,7 +70,7 @@ interface
7070 { * Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL *}
7171 SDL_IMAGE_MAJOR_VERSION = 2 ;
7272 SDL_IMAGE_MINOR_VERSION = 0 ;
73- SDL_IMAGE_PATCHLEVEL = 0 ;
73+ SDL_IMAGE_PATCHLEVEL = 5 ;
7474
7575 { * This macro can be used to fill a version structure with the compile-time
7676 * version of the SDL_image library.
@@ -133,6 +133,7 @@ function IMG_isLBM(src: PSDL_RWops): SInt32 cdecl; external IMG_LibName {$IFDEF
133133function IMG_isPCX (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isPCX' { $ENDIF} { $ENDIF} ;
134134function IMG_isPNG (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isPNG' { $ENDIF} { $ENDIF} ;
135135function IMG_isPNM (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isPNM' { $ENDIF} { $ENDIF} ;
136+ function IMG_isSVG (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isSVG' { $ENDIF} { $ENDIF} ;
136137function IMG_isTIF (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isTIF' { $ENDIF} { $ENDIF} ;
137138function IMG_isXCF (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' -IMG_isXCF' { $ENDIF} { $ENDIF} ;
138139function IMG_isXPM (src: PSDL_RWops): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_isXPM' { $ENDIF} { $ENDIF} ;
@@ -149,6 +150,7 @@ function IMG_LoadLBM_RW(src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibNa
149150function IMG_LoadPCX_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadPCX_RW' { $ENDIF} { $ENDIF} ;
150151function IMG_LoadPNG_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadPNG_RW' { $ENDIF} { $ENDIF} ;
151152function IMG_LoadPNM_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadPNM_RW' { $ENDIF} { $ENDIF} ;
153+ function IMG_LoadSVG_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadSVG_RW' { $ENDIF} { $ENDIF} ;
152154function IMG_LoadTGA_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadTGA_RW' { $ENDIF} { $ENDIF} ;
153155function IMG_LoadTIF_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadTIF_RW' { $ENDIF} { $ENDIF} ;
154156function IMG_LoadXCF_RW (src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_LoadXCF_RW' { $ENDIF} { $ENDIF} ;
@@ -159,8 +161,14 @@ function IMG_LoadWEBP_RW(src: PSDL_RWops): PSDL_Surface cdecl; external IMG_LibN
159161function IMG_ReadXPMFromArray (xpm: PPChar): PSDL_Surface cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_ReadXPMFromArray' { $ENDIF} { $ENDIF} ;
160162
161163 { * Individual saving functions *}
162- function IMG_SavePNG (surface: PSDL_Surface; const _file: PAnsiChar): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SavePNG' { $ENDIF} { $ENDIF} ;
163- function IMG_SavePNG_RW (surface: PSDL_Surface; dst: PSDL_RWops; freedst: SInt32): SInt32 cdecl; external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SavePNG_RW' { $ENDIF} { $ENDIF} ;
164+ function IMG_SavePNG (surface: PSDL_Surface; const _file: PAnsiChar): SInt32 cdecl;
165+ external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SavePNG' { $ENDIF} { $ENDIF} ;
166+ function IMG_SavePNG_RW (surface: PSDL_Surface; dst: PSDL_RWops; freedst: SInt32): SInt32 cdecl;
167+ external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SavePNG_RW' { $ENDIF} { $ENDIF} ;
168+ function IMG_SaveJPG (surface: PSDL_Surface; const _file: PAnsiChar; quality: SInt32): SInt32 cdecl;
169+ external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SaveJPG' { $ENDIF} { $ENDIF} ;
170+ function IMG_SaveJPG_RW (surface: PSDL_Surface; dst: PSDL_RWops; freedst: SInt32; quality: SInt32): SInt32 cdecl;
171+ external IMG_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _IMG_SaveJPG_RW' { $ENDIF} { $ENDIF} ;
164172
165173{ * We'll use SDL for reporting errors *}
166174function IMG_SetError (fmt: PAnsiChar): SInt32; cdecl;
0 commit comments