private void SyncLabels() { var temp = _settings.Clone(); var syncTemp = _syncSettings.Clone(); SyncSettingsFromGui(temp, syncTemp); _settings.Validate(); // actually, I think this is irrelevant. But it's nice in case we want to do some kind of a more detailed simulation later int w = _previewVideoSize.Width; int h = _previewVideoSize.Height; temp.ResolutionMode = Octoshock.eResolutionMode.PixelPro; var ri = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblPixelPro.Text = _lblPixelProText.Replace("800x480", $"{ri.Resolution.Width}x{ri.Resolution.Height}"); temp.ResolutionMode = Octoshock.eResolutionMode.Mednafen; ri = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblMednafen.Text = _lblMednafenText.Replace("320x240", $"{ri.Resolution.Width}x{ri.Resolution.Height}"); temp.ResolutionMode = Octoshock.eResolutionMode.TweakedMednafen; ri = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblTweakedMednafen.Text = _lblTweakedMednafenText.Replace("400x300", $"{ri.Resolution.Width}x{ri.Resolution.Height}"); }
void SyncLabels() { var temp = _settings.Clone(); SyncGuiToTheseSettings(temp); _settings.Validate(); //actually, I think this is irrelevant. But it's nice in case we want to do some kind of a more detailed simulation later int w = _previewVideoSize.Width; int h = _previewVideoSize.Height; temp.ResolutionMode = Octoshock.eResolutionMode.PixelPro; var size = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblPixelPro.Text = lblPixelPro_text.Replace("800x480", string.Format("{0}x{1}", size.Width, size.Height));; temp.ResolutionMode = Octoshock.eResolutionMode.Mednafen; size = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblMednafen.Text = lblMednafen_text.Replace("320x240", string.Format("{0}x{1}", size.Width, size.Height)); temp.ResolutionMode = Octoshock.eResolutionMode.TweakedMednafen; size = Octoshock.CalculateResolution(_previewVideoStandard, temp, w, h); lblTweakedMednafen.Text = lblTweakedMednafen_text.Replace("400x300", string.Format("{0}x{1}", size.Width, size.Height)); }