mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +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);
|
||||
if (index < 0)
|
||||
return false;
|
||||
else
|
||||
size_t_var = (size_t)index;
|
||||
strncpy(lgame_id, raw_game_id, index - 1);
|
||||
lgame_id[index - 1] = '\0';
|
||||
strncpy(rgame_id, &raw_game_id[length - 4], length - 3);
|
||||
|
@ -229,27 +229,12 @@ void *glkitview_init(void);
|
||||
|
||||
- (void)viewWillLayoutSubviews
|
||||
{
|
||||
float width = 0.0f, height = 0.0f;
|
||||
RAScreen *screen = (BRIDGE RAScreen*)cocoa_screen_get_chosen();
|
||||
UIInterfaceOrientation orientation = self.interfaceOrientation;
|
||||
CGRect screenSize = [screen bounds];
|
||||
SEL selector = NSSelectorFromString(BOXSTRING("coordinateSpace"));
|
||||
|
||||
if ([screen respondsToSelector:selector])
|
||||
{
|
||||
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];
|
||||
#ifdef HAVE_IOS_CUSTOMKEYBOARD
|
||||
|
Loading…
x
Reference in New Issue
Block a user