Fit WindowWidth and WindowHeight to skin's resolution at each game launch or skin change
In order to prevent the need to edit Config.ini each time the window is resized by mistake, it's still possible to resize the window, but it will no longer be saved between instances, also window is now automatically resized when switching between 2 skins with different resolutions
This commit is contained in:
parent
bbce3134a2
commit
725f99bf2c
@ -3102,8 +3102,9 @@ for (int i = 0; i < 3; i++) {
|
||||
|
||||
base.GraphicsDeviceManager.ChangeDevice(base.GraphicsDeviceManager.CurrentSettings);
|
||||
|
||||
base.Window.ClientSize = new Size(currentClientSize.Width, currentClientSize.Height);
|
||||
base.Window.WindowState = state;
|
||||
//base.Window.ClientSize = new Size(currentClientSize.Width, currentClientSize.Height);
|
||||
base.Window.ClientSize = new Size(nWidth, nHeight);
|
||||
base.Window.WindowState = state;
|
||||
}
|
||||
|
||||
public void RefleshSkin()
|
||||
|
Loading…
x
Reference in New Issue
Block a user