(450a14ae6) Resolution button is locked on Windows when in borderless windowed.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace Barotrauma
|
|||||||
var resolutionDD = new GUIDropDown(new RectTransform(new Vector2(1.0f, 0.05f), leftColumn.RectTransform), elementCount: supportedDisplayModes.Count)
|
var resolutionDD = new GUIDropDown(new RectTransform(new Vector2(1.0f, 0.05f), leftColumn.RectTransform), elementCount: supportedDisplayModes.Count)
|
||||||
{
|
{
|
||||||
OnSelected = SelectResolution,
|
OnSelected = SelectResolution,
|
||||||
#if OSX
|
#if !LINUX
|
||||||
ButtonEnabled = GameMain.Config.WindowMode == WindowMode.Windowed
|
ButtonEnabled = GameMain.Config.WindowMode == WindowMode.Windowed
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@@ -241,7 +241,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
UnsavedSettings = true;
|
UnsavedSettings = true;
|
||||||
GameMain.Config.WindowMode = (WindowMode)guiComponent.UserData;
|
GameMain.Config.WindowMode = (WindowMode)guiComponent.UserData;
|
||||||
#if OSX
|
#if !LINUX
|
||||||
resolutionDD.ButtonEnabled = GameMain.Config.WindowMode == WindowMode.Windowed;
|
resolutionDD.ButtonEnabled = GameMain.Config.WindowMode == WindowMode.Windowed;
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user