mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
UI: Prevent window from being auto-resized to a scale below 1x
This commit is contained in:
parent
5422619516
commit
ea7aa40265
1 changed files with 4 additions and 1 deletions
|
@ -460,6 +460,10 @@ namespace Mesen.Windows
|
|||
|
||||
public void SetScale(double scale)
|
||||
{
|
||||
if(scale < 1) {
|
||||
scale = 1;
|
||||
}
|
||||
|
||||
//TODOv2 - Calling this twice seems to fix what might be an issue in Avalonia?
|
||||
//On the first call, when DPI > 100%, sometimes _rendererPanel's bounds are incorrect
|
||||
InternalSetScale(scale);
|
||||
|
@ -475,7 +479,6 @@ namespace Mesen.Windows
|
|||
if(WindowState == WindowState.Normal) {
|
||||
_rendererSize = new Size();
|
||||
|
||||
|
||||
//When menu is set to auto-hide, don't count its height when calculating the window's final size
|
||||
double menuHeight = ConfigManager.Config.Preferences.AutoHideMenu ? 0 : _mainMenu.Bounds.Height;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue