diff --git a/SigGen/swift/KnobView.swift b/SigGen/swift/KnobView.swift index 7bffe9c..c07a57e 100644 --- a/SigGen/swift/KnobView.swift +++ b/SigGen/swift/KnobView.swift @@ -126,7 +126,7 @@ class KnobView: NSControl let x = sin(value * .pi) * indentRadius let y = cos(value * .pi) * indentRadius let translate = AffineTransform(translationByX: x, byY: y) - indentPath.translate(using: transform) + indentPath.transform(using: translate) // Draw indent gradient.draw(in: indentPath, angle: 135) diff --git a/SigGen/swift/Makefile b/SigGen/swift/Makefile index a3b3dd4..aa079c6 100644 --- a/SigGen/swift/Makefile +++ b/SigGen/swift/Makefile @@ -47,11 +47,11 @@ SWIFTH = SigGen-Swift.h SOURCES = AppDelegate.swift ScaleView.swift DisplayView.swift \ KnobView.swift SigGenView.swift Audio.o -SFLAGS = -g -target x86_64-apple-macosx10.9 \ +SFLAGS = -g -target x86_64-apple-macosx10.10 \ -import-objc-header $(HEADER) -emit-objc-header-path $(SWIFTH) \ -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -w -CFLAGS = -g -target x86_64-apple-macosx10.9 +CFLAGS = -g -target x86_64-apple-macosx10.10 $(APPBUNDLE): $(APPNAME) $(APPNAME).icns