From 28c2cbc76429d84e90b729f6d95402967df76e37 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 9082bb4c..3b4d793c 100644 --- a/render.c.v +++ b/render.c.v @@ -530,7 +530,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. // @@ -555,7 +555,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void // SDL_GetError() for more information. // // 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) }