mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
Cleanups
This commit is contained in:
parent
c185c3b916
commit
95fad4d32c
@ -807,8 +807,6 @@ int detect_dc_game(intfstream_t *fd, char *game_id, const char *filename)
|
|||||||
index = string_index_last_occurance(raw_game_id, hyphen);
|
index = string_index_last_occurance(raw_game_id, hyphen);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return false;
|
return false;
|
||||||
else
|
|
||||||
size_t_var = (size_t)index;
|
|
||||||
strncpy(lgame_id, raw_game_id, index - 1);
|
strncpy(lgame_id, raw_game_id, index - 1);
|
||||||
lgame_id[index - 1] = '\0';
|
lgame_id[index - 1] = '\0';
|
||||||
strncpy(rgame_id, &raw_game_id[length - 4], length - 3);
|
strncpy(rgame_id, &raw_game_id[length - 4], length - 3);
|
||||||
|
@ -229,27 +229,12 @@ void *glkitview_init(void);
|
|||||||
|
|
||||||
- (void)viewWillLayoutSubviews
|
- (void)viewWillLayoutSubviews
|
||||||
{
|
{
|
||||||
float width = 0.0f, height = 0.0f;
|
|
||||||
RAScreen *screen = (BRIDGE RAScreen*)cocoa_screen_get_chosen();
|
RAScreen *screen = (BRIDGE RAScreen*)cocoa_screen_get_chosen();
|
||||||
UIInterfaceOrientation orientation = self.interfaceOrientation;
|
|
||||||
CGRect screenSize = [screen bounds];
|
CGRect screenSize = [screen bounds];
|
||||||
SEL selector = NSSelectorFromString(BOXSTRING("coordinateSpace"));
|
SEL selector = NSSelectorFromString(BOXSTRING("coordinateSpace"));
|
||||||
|
|
||||||
if ([screen respondsToSelector:selector])
|
if ([screen respondsToSelector:selector])
|
||||||
{
|
|
||||||
screenSize = [[screen coordinateSpace] bounds];
|
screenSize = [[screen coordinateSpace] bounds];
|
||||||
width = CGRectGetWidth(screenSize);
|
|
||||||
height = CGRectGetHeight(screenSize);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
width = ((int)orientation < 3)
|
|
||||||
? CGRectGetWidth(screenSize)
|
|
||||||
: CGRectGetHeight(screenSize);
|
|
||||||
height = ((int)orientation < 3)
|
|
||||||
? CGRectGetHeight(screenSize)
|
|
||||||
: CGRectGetWidth(screenSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
[self adjustViewFrameForSafeArea];
|
[self adjustViewFrameForSafeArea];
|
||||||
#ifdef HAVE_IOS_CUSTOMKEYBOARD
|
#ifdef HAVE_IOS_CUSTOMKEYBOARD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user