nsImage flipped

This commit is contained in:
Peter Tang
2023-09-12 07:32:39 +08:00
parent 32ba7c128a
commit 397d4ece6d

View File

@@ -91,7 +91,7 @@ extension MTMathImage {
return (nil, image) return (nil, image)
#endif #endif
#if os(macOS) #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 } guard let context = NSGraphicsContext.current?.cgContext else { return false }
context.saveGState() context.saveGState()
displayList.draw(context) displayList.draw(context)