Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Aug 8, 2023
1 parent 8b03932 commit 996a727
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Universal x86 Tuning Utility Handheld/Scripts/Misc/Display.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public struct DEVMODE
public int dmDisplayFrequency;
}

public static string targetDisplayName = FindLaptopScreen(); // Replace with your desired display name
public static string targetDisplayName = FindLaptopScreen();
public static List<string> uniqueResolutions = GetSupportedResolutions(targetDisplayName);
public static List<int> uniqueRefreshRates = GetSupportedRefreshRates(targetDisplayName);

Expand Down Expand Up @@ -170,6 +170,7 @@ public static void ChangeDisplaySettings(string targetDisplayName, int newWidth,

public static void ApplySettings(string input, int newHz)
{
targetDisplayName = FindLaptopScreen();
string[] dimensions = input.Split('x');
if (dimensions.Length == 2)
{
Expand Down Expand Up @@ -230,7 +231,7 @@ public enum ChangeDisplaySettingsFlags : uint
{
displayNum = count;
}

count++;
}

Expand Down

0 comments on commit 996a727

Please sign in to comment.