Fix start-size=session not working
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
- Fix long commands causing key bindings not visible in the command palette.
|
- Fix long commands causing key bindings not visible in the command palette.
|
||||||
- Fix script compatibility with mordenx and mpv-osc-tethys.
|
- Fix script compatibility with mordenx and mpv-osc-tethys.
|
||||||
- Fix borderless window not resizable with mouse.
|
- Fix borderless window not resizable with mouse.
|
||||||
|
- Fix start-size=session not working.
|
||||||
|
|
||||||
input.conf changes:
|
input.conf changes:
|
||||||
|
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ namespace mpvnet
|
|||||||
height = windowSize.Height;
|
height = windowSize.Height;
|
||||||
width = height * videoSize.Width / videoSize.Height;
|
width = height * videoSize.Width / videoSize.Height;
|
||||||
}
|
}
|
||||||
else if (App.StartSize == "height-session")
|
else if (App.StartSize == "height-session" || App.StartSize == "session")
|
||||||
{
|
{
|
||||||
height = autoFitHeight;
|
height = autoFitHeight;
|
||||||
width = height * videoSize.Width / videoSize.Height;
|
width = height * videoSize.Width / videoSize.Height;
|
||||||
@@ -492,7 +492,7 @@ namespace mpvnet
|
|||||||
width = autoFitHeight / 9 * 16;
|
width = autoFitHeight / 9 * 16;
|
||||||
height = (int)Math.Ceiling(width * videoSize.Height / (double)videoSize.Width);
|
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;
|
height = windowSize.Height;
|
||||||
width = windowSize.Width;
|
width = windowSize.Width;
|
||||||
|
|||||||
Reference in New Issue
Block a user