From fcf4605506913dc3509e02df513707d5bc05b79a Mon Sep 17 00:00:00 2001 From: lmp Date: Sun, 1 Dec 2024 10:41:50 +0100 Subject: [PATCH] render: fix signature of `lock_texture/4` --- render.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c.v b/render.c.v index d564881a..ce1fad40 100644 --- a/render.c.v +++ b/render.c.v @@ -609,7 +609,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. // @@ -636,7 +636,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) }