Esempio n. 1
0
 private void Revert()
 {
     if (Prefs.LogVerbose)
     {
         Log.Message("Reverting screen settings to " + oldRes.x + "x" + oldRes.z + ", fs=" + oldFullscreen.ToString());
     }
     ResolutionUtility.SetResolutionRaw(oldRes.x, oldRes.z, oldFullscreen);
     Prefs.FullScreen   = oldFullscreen;
     Prefs.ScreenWidth  = oldRes.x;
     Prefs.ScreenHeight = oldRes.z;
     Prefs.UIScale      = oldUIScale;
     GenUI.ClearLabelWidthCache();
 }