From ae2ad0213db9c2bdaafc6fb4d562e62adb814f8e Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 15 Sep 2024 23:24:18 +1000 Subject: [PATCH] Use local method instead of a loop in `MainForm.FrameBufferResized` --- src/BizHawk.Client.EmuHawk/MainForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index 3a2134191c..2d9ccd8ec2 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -1409,7 +1409,7 @@ namespace BizHawk.Client.EmuHawk return; } // 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); var area = Screen.FromControl(this).WorkingArea; @@ -1455,6 +1455,8 @@ namespace BizHawk.Client.EmuHawk } } } + DoPresentationPanelResize(); + DoPresentationPanelResize(); } private void SynchChrome()