mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Merge pull request #949 from lioncash/cast
Remove some redundant casts on OSX
This commit is contained in:
commit
06f395640f
@ -56,7 +56,7 @@
|
|||||||
@implementation NSScreen (IOSCompat)
|
@implementation NSScreen (IOSCompat)
|
||||||
- (CGRect)bounds
|
- (CGRect)bounds
|
||||||
{
|
{
|
||||||
CGRect cgrect = (CGRect)NSRectToCGRect(self.frame);
|
CGRect cgrect = NSRectToCGRect(self.frame);
|
||||||
return CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect));
|
return CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect));
|
||||||
}
|
}
|
||||||
- (float) scale { return 1.0f; }
|
- (float) scale { return 1.0f; }
|
||||||
|
@ -135,7 +135,7 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned*
|
|||||||
if (gl)
|
if (gl)
|
||||||
{
|
{
|
||||||
#if defined(OSX)
|
#if defined(OSX)
|
||||||
CGRect cgrect = (CGRect)NSRectToCGRect([g_view frame]);
|
CGRect cgrect = NSRectToCGRect([g_view frame]);
|
||||||
size = CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect));
|
size = CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect));
|
||||||
#else
|
#else
|
||||||
size = g_view.bounds;
|
size = g_view.bounds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user