diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index e5cd8eb82d..6b24f09cb3 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -56,7 +56,7 @@ @implementation NSScreen (IOSCompat) - (CGRect)bounds { - CGRect cgrect = (CGRect)NSRectToCGRect(self.frame); + CGRect cgrect = NSRectToCGRect(self.frame); return CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect)); } - (float) scale { return 1.0f; } diff --git a/apple/common/apple_gfx_context.c.inl b/apple/common/apple_gfx_context.c.inl index 18105feb6d..4fb3b67243 100644 --- a/apple/common/apple_gfx_context.c.inl +++ b/apple/common/apple_gfx_context.c.inl @@ -135,7 +135,7 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned* if (gl) { #if defined(OSX) - CGRect cgrect = (CGRect)NSRectToCGRect([g_view frame]); + CGRect cgrect = NSRectToCGRect([g_view frame]); size = CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect)); #else size = g_view.bounds;