No longer auto casts to float. Do it manually.

This commit is contained in:
Jason Felds
2013-04-28 12:01:41 -04:00
parent b296bcbd4a
commit 8bc0b9385c
@@ -109,7 +109,7 @@ public:
- (void) setParams:(NSValue *)params
{
const VideoModeParams &p = *(const VideoModeParams *)[params pointerValue];
NSRect contentRect = { { 0, 0 }, { p.width, p.height } };
NSRect contentRect = { { 0, 0 }, { static_cast<CGFloat>(p.width), static_cast<CGFloat>(p.height) } };
[m_Window setContentSize:contentRect.size];
[m_Window setTitle:[NSString stringWithUTF8String:p.sWindowTitle.c_str()]];