From 9eeb0233abca5e8ace997f257b99e7b00880bcf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=AE=87=E8=88=AA?= Date: Wed, 7 Jun 2017 16:16:13 +0800 Subject: [PATCH] update build for Xcode9 --- ShadowsocksX-NG/StatusItemView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowsocksX-NG/StatusItemView.swift b/ShadowsocksX-NG/StatusItemView.swift index 0441207..e1aa105 100755 --- a/ShadowsocksX-NG/StatusItemView.swift +++ b/ShadowsocksX-NG/StatusItemView.swift @@ -56,7 +56,7 @@ open class StatusItemView: NSControl { let downRateRect = downRateString.boundingRect(with: NSSize(width: 100, height: 100), options: .usesLineFragmentOrigin) downRateString.draw(at: NSMakePoint(bounds.width - downRateRect.width - 5, 0)) } - image?.draw(at: NSPoint(x: 0, y: 0), from: NSRect(x: 0, y: 0, width: bounds.height, height: bounds.height), operation: NSCompositeSourceOver, fraction: 1.0) + image?.draw(at: NSPoint(x: 0, y: 0), from: NSRect(x: 0, y: 0, width: bounds.height, height: bounds.height), operation: NSCompositingOperation.sourceOver, fraction: 1.0) } open func setRateData(up:Float, down: Float) {