Fixed upgrade issue vs aspect ratio setting

This commit is contained in:
Souryo 2017-07-23 14:00:13 -04:00
parent 014f06ce2f
commit b608460fce
2 changed files with 4 additions and 3 deletions

View file

@ -19,7 +19,7 @@ namespace Mesen.GUI.Config
[MinMax(0.1, 10.0)] public double VideoScale = 2;
public VideoFilterType VideoFilter = VideoFilterType.None;
public bool UseBilinearInterpolation = false;
public VideoAspectRatio AspectRatio = VideoAspectRatio.Auto;
public VideoAspectRatio AspectRatio = VideoAspectRatio.NoStretching;
[MinMax(0.1, 5.0)] public double CustomAspectRatio = 1.0;
public bool VerticalSync = false;
public bool UseHdPacks = false;

View file

@ -218,7 +218,7 @@ namespace Mesen.GUI.Forms
Version oldVersion = new Version(ConfigManager.Config.MesenVersion);
if(oldVersion < newVersion) {
//Upgrade
if(oldVersion <= new Version("9.0.0")) {
if(oldVersion <= new Version("0.9.0")) {
//Version 0.9.0-
if(ConfigManager.Config.VideoInfo.AspectRatio == VideoAspectRatio.Auto) {
//0.9.0's "Auto" has been renamed to "NoStretching"
@ -226,7 +226,7 @@ namespace Mesen.GUI.Forms
}
}
if(oldVersion <= new Version("5.3.0")) {
if(oldVersion <= new Version("0.5.3")) {
//Version 0.5.3-
//Reduce sound latency if still using default
if(ConfigManager.Config.AudioInfo.AudioLatency == 100) {
@ -249,6 +249,7 @@ namespace Mesen.GUI.Forms
ConfigManager.Config.MesenVersion = InteropEmu.GetMesenVersion();
ConfigManager.ApplyChanges();
ConfigManager.Config.ApplyConfig();
MesenMsgBox.Show("UpgradeSuccess", MessageBoxButtons.OK, MessageBoxIcon.Information);
}