@@ -16,30 +16,10 @@ public class AndroidScreenManager : MonoBehaviour
1616
1717 private void Awake ( )
1818 {
19- // Set resolution to the current resolution, just so that it's not using a stale setting from when
20- // another Simulator was being used.
21- if ( AndroidUtils . IsRunningInSimulator )
22- {
23- DaggerfallUnity . Settings . ResolutionWidth = Screen . currentResolution . width ;
24- DaggerfallUnity . Settings . ResolutionHeight = Screen . currentResolution . height ;
25- lastResolution = Screen . currentResolution ;
26- }
27- else
28- {
29- DaggerfallUnity . Settings . ResolutionWidth = Screen . width ;
30- DaggerfallUnity . Settings . ResolutionHeight = Screen . height ;
31- lastResolution = new Resolution ( ) { width = Screen . width , height = Screen . height } ;
32- }
19+ DaggerfallUnity . Settings . ResolutionWidth = Screen . width ;
20+ DaggerfallUnity . Settings . ResolutionHeight = Screen . height ;
21+ lastResolution = new Resolution ( ) { width = Screen . width , height = Screen . height } ;
3322 }
34- // private void OnGUI()
35- // {
36- // if (GUI.Button(new Rect(10, 70, 50, 30), "Any"))
37- // SetOrientationToAny();
38- // if (GUI.Button(new Rect(10, 170, 50, 30), "Landscape"))
39- // SetOrientationToLandscape();
40- // if (GUI.Button(new Rect(10, 270, 50, 30), "Portrait"))
41- // SetOrientationToPortrait();
42- // }
4323 private void Update ( )
4424 {
4525 int x = Screen . width ;
@@ -52,7 +32,7 @@ private void Update()
5232 }
5333 public static void SetResolution ( int x , int y )
5434 {
55- Debug . Log ( "AndroidSimulationManager : Current screen updated to new resolution" ) ;
35+ Debug . Log ( "AndroidScreenManager : Current screen updated to new resolution" ) ;
5636 DaggerfallUnity . Settings . ResolutionWidth = x ;
5737 DaggerfallUnity . Settings . ResolutionHeight = y ;
5838
0 commit comments