From 8bff2a019016b690c4cc0cfc4153a6163cb7b16f Mon Sep 17 00:00:00 2001 From: larpon <768942+larpon@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:56:33 +0100 Subject: [PATCH] render: fix signature of `lock_texture/4` (#877) --- render.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c.v b/render.c.v index 2b8ff782..a86859e3 100644 --- a/render.c.v +++ b/render.c.v @@ -374,7 +374,7 @@ pub fn update_yuv_texture(texture &Texture, const_rect &Rect, const_yplane &u8, upitch, const_vplane, vpitch) } -fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels voidptr, pitch &int) int +fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels &voidptr, pitch &int) int // lock_texture locks a portion of the texture for write-only pixel access. // @@ -389,7 +389,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void // returns 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING. // // See also: SDL_UnlockTexture() -pub fn lock_texture(texture &Texture, const_rect &Rect, pixels voidptr, pitch &int) int { +pub fn lock_texture(texture &Texture, const_rect &Rect, pixels &voidptr, pitch &int) int { return C.SDL_LockTexture(texture, const_rect, pixels, pitch) }