Skip to content

Commit

Permalink
render: fix signature of lock_texture/4 (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon authored Dec 1, 2024
1 parent a3a63e0 commit b5c51a0
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 @@ -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.
//
Expand All @@ -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)
}

Expand Down

0 comments on commit b5c51a0

Please sign in to comment.