mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
parent
2b820bdf10
commit
d7708ad84a
@ -1987,7 +1987,7 @@ MSG_HASH(
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_VIDEO_NOTCH_WRITE_OVER,
|
||||
"Enable fullscreen over notch in Android devices"
|
||||
"Enable fullscreen over notch in Android and iOS devices"
|
||||
)
|
||||
|
||||
/* Settings > Video > CRT SwitchRes */
|
||||
|
@ -12070,7 +12070,7 @@ static bool setting_append_list(
|
||||
/* prevent unused function warning on unsupported builds */
|
||||
(void)setting_get_string_representation_int_gpu_index;
|
||||
|
||||
#ifdef ANDROID
|
||||
#if defined(ANDROID) || TARGET_OS_IOS
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.video_notch_write_over_enable,
|
||||
|
@ -379,10 +379,21 @@ void *glkitview_init(void);
|
||||
* the notch in iPhone X phones */
|
||||
if (@available(iOS 11, *))
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
RAScreen *screen = (BRIDGE RAScreen*)cocoa_screen_get_chosen();
|
||||
CGRect screenSize = [screen bounds];
|
||||
UIEdgeInsets inset = [[UIApplication sharedApplication] delegate].window.safeAreaInsets;
|
||||
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
|
||||
|
||||
if (settings->bools.video_notch_write_over_enable)
|
||||
{
|
||||
self.view.frame = CGRectMake(screenSize.origin.x,
|
||||
screenSize.origin.y,
|
||||
screenSize.size.width,
|
||||
screenSize.size.height);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (orientation)
|
||||
{
|
||||
case UIInterfaceOrientationPortrait:
|
||||
|
Loading…
x
Reference in New Issue
Block a user