From 6f75fd81ce41810f03c0518e595c809cd199ea3e Mon Sep 17 00:00:00 2001 From: larpon <768942+larpon@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:57:43 +0100 Subject: [PATCH] render: fix signature of `lock_texture/4` (#886) --- render.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c.v b/render.c.v index 46547541..436380c4 100644 --- a/render.c.v +++ b/render.c.v @@ -626,7 +626,7 @@ pub fn update_nv_texture(texture &C.SDL_Texture, const_rect &Rect, const_yplane u_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. // @@ -653,7 +653,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void // NOTE This function is available since SDL 2.0.0. // // 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) }