This commit is contained in:
2025-09-18 10:15:40 +08:00
parent 37399df8c9
commit 566accac4f
34 changed files with 3953 additions and 45 deletions

View File

@@ -109,8 +109,8 @@ public class DisplayPanel : MonoBehaviour
{
if (resolutions == null) return;
var settings = SettingsManager.Instance.CurrentSettings;
Resolution res = resolutions[resolutions.Length];
if (settings.resolutionIndex< resolutions.Length)
Resolution res = resolutions[resolutions.Length-1];
if (settings.resolutionIndex < resolutions.Length && settings.resolutionIndex>=0)
{
res = resolutions[settings.resolutionIndex];
}