(962c58b6d) Hide very small resolution options from the settings menu. Addresses (but doesn't fully fix) #1253

This commit is contained in:
Joonas Rikkonen
2019-03-28 12:35:43 +02:00
parent 9849e76f76
commit 13870a31c4
@@ -20,6 +20,8 @@ namespace Barotrauma
Controls,
}
private readonly Point MinSupportedResolution = new Point(1024, 540);
private GUIFrame settingsFrame;
private GUIButton applyButton;
@@ -135,6 +137,7 @@ namespace Barotrauma
foreach (DisplayMode mode in supportedDisplayModes)
{
if (mode.Width < MinSupportedResolution.X || mode.Height < MinSupportedResolution.Y) { continue; }
resolutionDD.AddItem(mode.Width + "x" + mode.Height, mode);
if (GraphicsWidth == mode.Width && GraphicsHeight == mode.Height) resolutionDD.SelectItem(mode);
}