From 54fd01a7f2ef09ecfb7387633ee5294e0be607a4 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 19 Nov 2022 11:15:23 +0700 Subject: [PATCH] Fix: lost updateSavedResolution in viewWillTransitionToSize This caused game not to update resolution on window resize. --- Natives/SurfaceViewController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index f234e37e..06d388f3 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -415,6 +415,9 @@ BOOL slideableHotbar; [(ControlButton *)view update]; } } + + // Update game resolution + [self updateSavedResolution]; } completion:^(id _Nonnull context) { virtualMouseFrame = self.mousePointerView.frame; }];