Skip to content

Commit

Permalink
feat: Add 32:9 as valid resolution for recording games (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumCarmicheal authored Jul 30, 2023
1 parent 9aa458f commit ac0bf92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Utils/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public static string GetAspectRatio(int width, int height) {
}

public static bool IsValidAspectRatio(int width, int height) {
return new[] { "64:27", "43:18", "21:9", "16:10", "16:9", "4:3" }.Contains(GetAspectRatio(width, height));
return new[] { "64:27", "43:18", "21:9", "16:10", "16:9", "4:3", "32:9" }.Contains(GetAspectRatio(width, height));
}

public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> source) {
Expand Down Expand Up @@ -780,4 +780,4 @@ static async Task ProcessContentStream(Stream contentStream, long? totalBytes, s
}
}
}
}
}

0 comments on commit ac0bf92

Please sign in to comment.