diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:24 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:24 +0000 |
commit | 0baa72aff9737e17741b83c8a6d87891fb03bc0f (patch) | |
tree | cfb2f5ab859ce5cf7ebea2ef2724fe721466e213 /src/video/cocoa/cocoa_v.mm | |
parent | fd16b0c65c1b65908f20527c010a83b6e7e4cf3b (diff) | |
download | openttd-0baa72aff9737e17741b83c8a6d87891fb03bc0f.tar.xz |
(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
Diffstat (limited to 'src/video/cocoa/cocoa_v.mm')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index fb60a6f16..13264d6b1 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -961,7 +961,7 @@ static const char *Utf8AdvanceByUtf16Units(const char *str, NSUInteger count) NSPoint view_pt = [ self convertPoint:[ [ self window ] convertScreenToBase:thePoint ] fromView:nil ]; - Point pt = { view_pt.x, [ self frame ].size.height - view_pt.y }; + Point pt = { (int)view_pt.x, (int)[ self frame ].size.height - (int)view_pt.y }; const char *ch = _focused_window->GetTextCharacterAtPosition(pt); if (ch == NULL) return NSNotFound; |