Skip to content

Commit 3b111cd

Browse files
committed
Expose compatibility API
1 parent 42cb067 commit 3b111cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/Silica/CGContext.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ public final class CGContext {
321321
internalState = newState
322322
}
323323

324-
internal func saveGState() {
324+
/// Pushes a copy of the current graphics state onto the graphics state stack for the context.
325+
public func saveGState() {
325326
try! save()
326327
}
327328

@@ -341,7 +342,7 @@ public final class CGContext {
341342
internalState = restoredState
342343
}
343344

344-
@inline(__always)
345+
/// Sets the current graphics state to the state most recently saved.
345346
public func restoreGState() {
346347
try! restore()
347348
}

0 commit comments

Comments
 (0)