OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21e49a
)
不要な定数を削除
author
masakih
<masakih@users.sourceforge.jp>
Tue, 12 Dec 2017 15:46:12 +0000
(
00:46
+0900)
committer
masakih
<masakih@users.sourceforge.jp>
Tue, 12 Dec 2017 15:46:12 +0000
(
00:46
+0900)
KCD/NSTextFieldExtension.swift
patch
|
blob
|
history
diff --git
a/KCD/NSTextFieldExtension.swift
b/KCD/NSTextFieldExtension.swift
index
3d8d4a1
..
115d4b3
100644
(file)
--- a/
KCD/NSTextFieldExtension.swift
+++ b/
KCD/NSTextFieldExtension.swift
@@
-12,14
+12,12
@@
extension NSTextField {
func maskImage(middle1: CGFloat, middle2: CGFloat) -> CGImage {
- let colorspace = CGColorSpaceCreateDeviceGray()
-
guard let maskContext = CGContext(data: nil,
width: Int(bounds.width),
height: Int(bounds.height),
bitsPerComponent: 8,
bytesPerRow: Int(bounds.width),
- space:
colorspace
,
+ space:
CGColorSpaceCreateDeviceGray()
,
bitmapInfo: 0) else {
fatalError("Can not create bitmap context")