Added resize function

Resize function gets called if the value of the config resolution combo box is not null  and not set to auto.
This commit is contained in:
Christopher Merrill 2023-04-15 11:36:45 -05:00 committed by GitHub
parent c2ec31c9a2
commit 6e66e78918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1011,6 +1011,14 @@ namespace Ryujinx.Ui
}
}
public void UpdateWindowResolution(){
int width = ConfigurationState.Instance.Ui.WindowSizeWidth.Value;
int height = ConfigurationState.Instance.Ui.WindowSizeHeight.Value;
Resize(width, height);
}
public void UpdateGraphicsConfig()
{
int resScale = ConfigurationState.Instance.Graphics.ResScale;
@ -1762,4 +1770,4 @@ namespace Ryujinx.Ui
UpdateGameTable();
}
}
}
}