Skip to content

Commit

Permalink
render: fix signature of lock_texture/4 (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon authored Dec 1, 2024
1 parent fa1d7ab commit 2c95df6
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 @@ -413,7 +413,7 @@ pub fn update_yuv_texture(texture &Texture, const_rect &Rect, const_yplane &u8,
upitch, const_vplane, 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 @@ -428,7 +428,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void
// returns 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING.
//
// 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 2c95df6

Please sign in to comment.