From e0cd1d2309a706ef555768068a75d56e96808aca Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Sat, 28 Dec 2019 20:20:06 +0300 Subject: [PATCH] [ios] fix size of EAGL layer on external screen --- xbmc/platform/darwin/ios/IOSEAGLView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/platform/darwin/ios/IOSEAGLView.mm b/xbmc/platform/darwin/ios/IOSEAGLView.mm index cfebe41791f90..29658fb295526 100644 --- a/xbmc/platform/darwin/ios/IOSEAGLView.mm +++ b/xbmc/platform/darwin/ios/IOSEAGLView.mm @@ -60,7 +60,7 @@ + (Class) layerClass //-------------------------------------------------------------- - (void) resizeFrameBuffer { - auto frame = self.bounds; + auto frame = currentScreen == UIScreen.mainScreen ? self.bounds : currentScreen.bounds; CAEAGLLayer *eaglLayer = (CAEAGLLayer *)[self layer]; //allow a maximum framebuffer size of 1080p //needed for tvout on iPad3/4 and iphone4/5 and maybe AppleTV3