From 30df8aec8abdc3bf21a6416abc84659af385bd96 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Thu, 11 Jul 2024 01:34:16 +0800 Subject: [PATCH] full auto screen resolution update in background --- Limelight/ViewControllers/MainFrameViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index c2f90d9a..48feb881 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -897,8 +897,7 @@ static NSMutableSet* hostList; dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); // Perform some task after the delay dispatch_after(delayTime, dispatch_get_main_queue(), ^{// Code to execute after the delay - if(CGRectGetWidth([[UIScreen mainScreen] bounds]) != self->recordedScreenWidth) [self simulateSettingsButtonPressOpen]; //device orientation change condition. - self->recordedScreenWidth = CGRectGetWidth([[UIScreen mainScreen] bounds]); + [self swapResolutionWidthHeightAccordingly]; }); }