Skip to content

Commit

Permalink
render: fix signature of lock_texture/4 (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon authored Dec 1, 2024
1 parent fee5e1c commit 6f75fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand All @@ -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)
}

Expand Down

0 comments on commit 6f75fd8

Please sign in to comment.