Mercurial > projects > dwt-mac
comparison dwt/widgets/Caret.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | 5b53d338c709 |
comparison
equal
deleted
inserted
replaced
6:b903c16b6f48 | 7:e831403a80a9 |
---|---|
101 if (parent.isDisposed ()) return false; | 101 if (parent.isDisposed ()) return false; |
102 int nWidth = width, nHeight = height; | 102 int nWidth = width, nHeight = height; |
103 if (nWidth <= 0) nWidth = DEFAULT_WIDTH; | 103 if (nWidth <= 0) nWidth = DEFAULT_WIDTH; |
104 if (image !is null) { | 104 if (image !is null) { |
105 NSSize size = image.handle.size(); | 105 NSSize size = image.handle.size(); |
106 nWidth = (int)size.width; | 106 nWidth = cast(int)size.width; |
107 nHeight = (int)size.height; | 107 nHeight = cast(int)size.height; |
108 } | 108 } |
109 NSRect rect = new NSRect(); | 109 NSRect rect = new NSRect(); |
110 rect.x = x; | 110 rect.x = x; |
111 rect.y = y; | 111 rect.y = y; |
112 rect.width = nWidth; | 112 rect.width = nWidth; |