aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorchuga <98280110+chuga-git@users.noreply.github.com>2025-03-07 00:33:44 -0600
committerchuga <98280110+chuga-git@users.noreply.github.com>2025-03-07 00:33:44 -0600
commiteca08929cdebf142a433bd9e94eea69ec41fe3ff (patch)
tree2ed50269265779ba2f25031989984a838a96bdae /vendor
parent97d410c2aee5fd7222dcfde57ada3f68009c57a0 (diff)
vendor/sdl3: changed GetPixelFormatName() return type from rawptr to cstring
Diffstat (limited to 'vendor')
-rw-r--r--vendor/sdl3/sdl3_pixels.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/sdl3/sdl3_pixels.odin b/vendor/sdl3/sdl3_pixels.odin
index 0bea733f8..a9dec79fb 100644
--- a/vendor/sdl3/sdl3_pixels.odin
+++ b/vendor/sdl3/sdl3_pixels.odin
@@ -550,7 +550,7 @@ PixelFormatDetails :: struct {
@(default_calling_convention="c", link_prefix="SDL_")
foreign lib {
- GetPixelFormatName :: proc(format: PixelFormat) -> rawptr ---
+ GetPixelFormatName :: proc(format: PixelFormat) -> cstring ---
GetMasksForPixelFormat :: proc(format: PixelFormat, bpp: ^c.int, Rmask, Gmask, Bmask, Amask: ^Uint32) -> bool ---
GetPixelFormatForMasks :: proc(bpp: c.int, Rmask, Gmask, Bmask, Amask: Uint32) -> PixelFormat ---
GetPixelFormatDetails :: proc(format: PixelFormat) -> ^PixelFormatDetails ---
@@ -561,4 +561,4 @@ foreign lib {
MapRGBA :: proc(format: ^PixelFormatDetails, palette: ^Palette, r, g, b, a: Uint8) -> Uint32 ---
GetRGB :: proc(pixel: Uint32, format: ^PixelFormatDetails, palette: ^Palette, r, g, b: ^Uint8) ---
GetRGBA :: proc(pixel: Uint32, format: ^PixelFormatDetails, palette: ^Palette, r, g, b, a: ^Uint8) ---
-} \ No newline at end of file
+}