Skip to content

Commit

Permalink
Expose compatibility API
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 15, 2024
1 parent 42cb067 commit 3b111cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Silica/CGContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ public final class CGContext {
internalState = newState
}

internal func saveGState() {
/// Pushes a copy of the current graphics state onto the graphics state stack for the context.
public func saveGState() {
try! save()
}

Expand All @@ -341,7 +342,7 @@ public final class CGContext {
internalState = restoredState
}

@inline(__always)
/// Sets the current graphics state to the state most recently saved.
public func restoreGState() {
try! restore()
}
Expand Down

0 comments on commit 3b111cd

Please sign in to comment.