Use local method instead of a loop in `MainForm.FrameBufferResized`
This commit is contained in:
parent
21cdc86e8c
commit
ae2ad0213d
|
@ -1409,7 +1409,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// run this entire thing exactly twice, since the first resize may adjust the menu stacking
|
// run this entire thing exactly twice, since the first resize may adjust the menu stacking
|
||||||
for (int i = 0; i < 2; i++)
|
void DoPresentationPanelResize()
|
||||||
{
|
{
|
||||||
int zoom = Config.GetWindowScaleFor(Emulator.SystemId);
|
int zoom = Config.GetWindowScaleFor(Emulator.SystemId);
|
||||||
var area = Screen.FromControl(this).WorkingArea;
|
var area = Screen.FromControl(this).WorkingArea;
|
||||||
|
@ -1455,6 +1455,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DoPresentationPanelResize();
|
||||||
|
DoPresentationPanelResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SynchChrome()
|
private void SynchChrome()
|
||||||
|
|
Loading…
Reference in New Issue