File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/BizHawk.Client.EmuHawk Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1433,14 +1433,17 @@ public void FrameBufferResized(bool forceWindowResize = false)
1433
1433
// Is window off the screen at this size?
1434
1434
if ( ! area . Contains ( Bounds ) )
1435
1435
{
1436
+ // At large framebuffer sizes/low screen resolutions, the window may be too large to fit the screen even at 1x scale
1437
+ // Prioritize that the top-left of the window is on-screen so the title bar and menu stay accessible
1438
+
1436
1439
if ( Bounds . Right > area . Right ) // Window is off the right edge
1437
1440
{
1438
- Location = new Point ( area . Right - Size . Width , Location . Y ) ;
1441
+ Left = Math . Max ( area . Right - Size . Width , area . Left ) ;
1439
1442
}
1440
1443
1441
1444
if ( Bounds . Bottom > area . Bottom ) // Window is off the bottom edge
1442
1445
{
1443
- Location = new Point ( Location . X , area . Bottom - Size . Height ) ;
1446
+ Top = Math . Max ( area . Bottom - Size . Height , area . Top ) ;
1444
1447
}
1445
1448
}
1446
1449
}
You can’t perform that action at this time.
0 commit comments