Skip to content

Commit

Permalink
Silly CGContext and Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Aug 28, 2014
1 parent 976c11a commit 597078a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Clock/Classes/ClockView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class ClockView: ScreenSaverView {

let graphicsContext = NSGraphicsContext.currentContext()
let cgImage = image.CGImageForProposedRect(nil, context: graphicsContext, hints: nil).takeUnretainedValue()
let context = graphicsContext.CGContext
let context: CGContext = unsafeBitCast(graphicsContext.graphicsPort, CGContext.self)

CGContextSaveGState(context)
CGContextClipToMask(context, logoRect, cgImage)
Expand Down

0 comments on commit 597078a

Please sign in to comment.