• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revision527712e2aaf2852cfb55bcc7d474b7d56eb5c800 (tree)
Time2017-12-13 00:46:12
Authormasakih <masakih@user...>
Commitermasakih

Log Message

不要な定数を削除

Change Summary

Incremental Difference

--- a/KCD/NSTextFieldExtension.swift
+++ b/KCD/NSTextFieldExtension.swift
@@ -12,14 +12,12 @@ extension NSTextField {
1212
1313 func maskImage(middle1: CGFloat, middle2: CGFloat) -> CGImage {
1414
15- let colorspace = CGColorSpaceCreateDeviceGray()
16-
1715 guard let maskContext = CGContext(data: nil,
1816 width: Int(bounds.width),
1917 height: Int(bounds.height),
2018 bitsPerComponent: 8,
2119 bytesPerRow: Int(bounds.width),
22- space: colorspace,
20+ space: CGColorSpaceCreateDeviceGray(),
2321 bitmapInfo: 0) else {
2422
2523 fatalError("Can not create bitmap context")
Show on old repository browser