Fix start-size=session not working

This commit is contained in:
stax76
2022-06-19 07:51:30 +02:00
parent 500fe9abc4
commit e69a5559e8
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
- Fix long commands causing key bindings not visible in the command palette.
- Fix script compatibility with mordenx and mpv-osc-tethys.
- Fix borderless window not resizable with mouse.
- Fix start-size=session not working.
input.conf changes:

View File

@@ -477,7 +477,7 @@ namespace mpvnet
height = windowSize.Height;
width = height * videoSize.Width / videoSize.Height;
}
else if (App.StartSize == "height-session")
else if (App.StartSize == "height-session" || App.StartSize == "session")
{
height = autoFitHeight;
width = height * videoSize.Width / videoSize.Height;
@@ -492,7 +492,7 @@ namespace mpvnet
width = autoFitHeight / 9 * 16;
height = (int)Math.Ceiling(width * videoSize.Height / (double)videoSize.Width);
}
else if (KeepSize() && windowSize.Height != 0)
else if (App.StartSize == "always" && windowSize.Height != 0)
{
height = windowSize.Height;
width = windowSize.Width;