aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2025-07-20 13:18:09 +0200
committerGitHub <noreply@github.com>2025-07-20 13:18:09 +0200
commita90ee538666fbfb0dae1818d3a219d0ea8bc859e (patch)
tree69e4f838fe8636cc77e771053573315add04dd29
parenta658cc5ef680a18384c675cb1bd3e82c11567079 (diff)
parente7e16f063e0d3dd65c1b3ddcc1dd53f974c12c1e (diff)
Merge pull request #5485 from poops/sdl3-image-save-functions-return-bool
SDL_image save functions should return bool
-rw-r--r--vendor/sdl3/image/sdl_image.odin12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/sdl3/image/sdl_image.odin b/vendor/sdl3/image/sdl_image.odin
index 96c3901c8..d2c628a86 100644
--- a/vendor/sdl3/image/sdl_image.odin
+++ b/vendor/sdl3/image/sdl_image.odin
@@ -89,12 +89,12 @@ foreign lib {
ReadXPMFromArrayToRGB888 :: proc(xpm: [^]cstring) -> ^SDL.Surface ---
/* Individual saving functions */
- SaveAVIF :: proc(surface: ^SDL.Surface, file: cstring, quality: c.int) -> c.int ---
- SaveAVIF_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool, quality: c.int) -> c.int ---
- SavePNG :: proc(surface: ^SDL.Surface, file: cstring) -> c.int ---
- SavePNG_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool) -> c.int ---
- SaveJPG :: proc(surface: ^SDL.Surface, file: cstring, quality: c.int) -> c.int ---
- SaveJPG_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool, quality: c.int) -> c.int ---
+ SaveAVIF :: proc(surface: ^SDL.Surface, file: cstring, quality: c.int) -> c.bool ---
+ SaveAVIF_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool, quality: c.int) -> c.bool ---
+ SavePNG :: proc(surface: ^SDL.Surface, file: cstring) -> c.bool ---
+ SavePNG_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool) -> c.bool ---
+ SaveJPG :: proc(surface: ^SDL.Surface, file: cstring, quality: c.int) -> c.bool ---
+ SaveJPG_IO :: proc(surface: ^SDL.Surface, dst: ^SDL.IOStream, closeio: bool, quality: c.int) -> c.bool ---
LoadAnimation :: proc(file: cstring) -> ^Animation ---
LoadAnimation_IO :: proc(src: ^SDL.IOStream, closeio: bool) -> ^Animation ---