Skip to content

Commit

Permalink
Fixed SDLTexture.withUnsafeMutableBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 15, 2024
1 parent 859c9d7 commit 718c2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SDL/Texture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public final class SDLTexture {
/// - body: The closure is called with the pixel pointer and pitch.
/// - pointer: The pixel pointer.
/// - pitch: The pitch.
public func withUnsafeMutableBytes<Result>(for rect: SDL_Rect? = nil, _ body: (_ pointer: UnsafeMutableRawPointer, _ pitch: Int) throws(SDLError) -> Result) throws(SDLError) -> Result? {
public func withUnsafeMutableBytes<Result>(for rect: SDL_Rect? = nil, _ body: (_ pointer: UnsafeMutableRawPointer, _ pitch: Int) throws -> Result) throws -> Result? {

var pitch: Int32 = 0

Expand Down

0 comments on commit 718c2b3

Please sign in to comment.