Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddxxx committed Sep 29, 2018
1 parent 1738a86 commit d652e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LyricsX/View/KaraokeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class KaraokeLabel: NSTextField {
override func draw(_ dirtyRect: NSRect) {
let context = NSGraphicsContext.current!.cgContext
context.textMatrix = .identity
context.translateBy(x: 0, y: dirtyRect.height)
context.translateBy(x: 0, y: bounds.height)
context.scaleBy(x: 1.0, y: -1.0)
CTFrameDraw(ctFrame, context)
}
Expand Down

0 comments on commit d652e3d

Please sign in to comment.