Use local method instead of a loop in `MainForm.FrameBufferResized`

This commit is contained in:
YoshiRulz 2024-09-15 23:24:18 +10:00
parent 21cdc86e8c
commit ae2ad0213d
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 1 deletions

View File

@ -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()