From d652e3da63c9aac6d33ab8de670ca8243ec66784 Mon Sep 17 00:00:00 2001 From: Xander Deng Date: Sat, 22 Sep 2018 00:39:57 +0800 Subject: [PATCH] minor fix --- LyricsX/View/KaraokeLabel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LyricsX/View/KaraokeLabel.swift b/LyricsX/View/KaraokeLabel.swift index e8a1e760..be4f2135 100644 --- a/LyricsX/View/KaraokeLabel.swift +++ b/LyricsX/View/KaraokeLabel.swift @@ -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) }