internal void DoResizeWindow(int WindowSizeCf) { WindowSizeCoef = WindowSizeCf; bool isActive = IsActive; if (isActive) { Deactivate(); } InitWindow(); InitTextures(); if (isActive) { Activate(); } WindowSettings.SaveSettings(WindowSizeCoef); }