1
0
mirror of synced 2025-01-19 01:24:08 +01:00

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:
0auBSQ 2022-11-05 04:43:12 +09:00
parent bbce3134a2
commit 725f99bf2c

View File

@ -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()