This commit is contained in:
twinaphex 2022-04-13 15:08:22 +02:00
parent c185c3b916
commit 95fad4d32c
2 changed files with 0 additions and 17 deletions

View File

@ -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);

View File

@ -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