From 397d4ece6d098095dc8bc366e0c49c1957db4299 Mon Sep 17 00:00:00 2001 From: Peter Tang Date: Tue, 12 Sep 2023 07:32:39 +0800 Subject: [PATCH] nsImage flipped --- Sources/SwiftMath/MathRender/MTMathImage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftMath/MathRender/MTMathImage.swift b/Sources/SwiftMath/MathRender/MTMathImage.swift index 577cca7..49bc043 100644 --- a/Sources/SwiftMath/MathRender/MTMathImage.swift +++ b/Sources/SwiftMath/MathRender/MTMathImage.swift @@ -91,7 +91,7 @@ extension MTMathImage { return (nil, image) #endif #if os(macOS) - let image = NSImage(size: size, flipped: true) { bounds in + let image = NSImage(size: size, flipped: false) { bounds in guard let context = NSGraphicsContext.current?.cgContext else { return false } context.saveGState() displayList.draw(context)