main code repository.
Revision | 527712e2aaf2852cfb55bcc7d474b7d56eb5c800 (tree) |
---|---|
Time | 2017-12-13 00:46:12 |
Author | masakih <masakih@user...> |
Commiter | masakih |
不要な定数を削除
@@ -12,14 +12,12 @@ extension NSTextField { | ||
12 | 12 | |
13 | 13 | func maskImage(middle1: CGFloat, middle2: CGFloat) -> CGImage { |
14 | 14 | |
15 | - let colorspace = CGColorSpaceCreateDeviceGray() | |
16 | - | |
17 | 15 | guard let maskContext = CGContext(data: nil, |
18 | 16 | width: Int(bounds.width), |
19 | 17 | height: Int(bounds.height), |
20 | 18 | bitsPerComponent: 8, |
21 | 19 | bytesPerRow: Int(bounds.width), |
22 | - space: colorspace, | |
20 | + space: CGColorSpaceCreateDeviceGray(), | |
23 | 21 | bitmapInfo: 0) else { |
24 | 22 | |
25 | 23 | fatalError("Can not create bitmap context") |