remove unnecessary usage of GlobalWin.Emulator (instance was already being passed in)

This commit is contained in:
adelikat 2020-07-03 13:34:17 -05:00
parent 8bb055b392
commit 20a1a49851
1 changed files with 2 additions and 3 deletions

View File

@ -37,9 +37,8 @@ namespace BizHawk.Client.EmuHawk
using var dlg = new DGBPrefs();
dlg.PutSettings(s, ss);
var emu = (GambatteLink)GlobalWin.Emulator;
dlg.gbPrefControl1.ColorGameBoy = emu.IsCGBMode(false);
dlg.gbPrefControl2.ColorGameBoy = emu.IsCGBMode(true);
dlg.gbPrefControl1.ColorGameBoy = gambatte.IsCGBMode(false);
dlg.gbPrefControl2.ColorGameBoy = gambatte.IsCGBMode(true);
if (mainForm.ShowDialogAsChild(dlg) == DialogResult.OK)
{