mainform: fix the bug where choosing a small size from the menu (typically 1x) would cause unexpected black bars

This commit is contained in:
goyuken 2012-09-30 14:18:21 +00:00
parent 40d86d0a8b
commit 89cf8e75fe
1 changed files with 27 additions and 23 deletions

View File

@ -2686,6 +2686,9 @@ namespace BizHawk.MultiClient
}
public void FrameBufferResized()
{
// run this entire thing exactly twice, since the first resize may adjust the menu stacking
for (int i = 0; i < 2; i++)
{
var video = Global.Emulator.VideoProvider;
int zoom = Global.Config.TargetZoomFactor;
@ -2716,6 +2719,7 @@ namespace BizHawk.MultiClient
Location = new Point(Location.X, area.Bottom - Size.Height);
}
}
}
private bool InFullscreen = false;
private Point WindowedLocation;