From 1064a80dad5ddb965761be1bc01d3966a1271a9d Mon Sep 17 00:00:00 2001 From: stax76 Date: Wed, 2 Mar 2022 14:33:47 +0100 Subject: [PATCH] gpu-next fix --- docs/Changelog.md | 2 +- src/Misc/MainForm.cs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index b789259..8867894 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -5,7 +5,7 @@ not yet released - Custom conf folder location feature removed. - Inno Setup replaced with Microsoft Store setup. - Fix script-opts files being ingnored. -- libmpv shinchiro 2021-12-19 +- libmpv zhongfly 2022-02-27 5.5.0.4 Beta (2021-11-05) diff --git a/src/Misc/MainForm.cs b/src/Misc/MainForm.cs index 67348de..84e15b8 100644 --- a/src/Misc/MainForm.cs +++ b/src/Misc/MainForm.cs @@ -74,7 +74,7 @@ namespace mpvnet Core.ObservePropertyDouble("window-scale", WindowScale); - if (!IsVulkanOrGpuNext) + if (Core.GPUAPI != "vulkan") Core.ProcessCommandLine(false); AppDomain.CurrentDomain.UnhandledException += (sender, e) => App.ShowException(e.ExceptionObject); @@ -194,8 +194,6 @@ namespace mpvnet bool IsCommandPaletteVissible() => CommandPaletteHost != null && CommandPaletteHost.Visible; - bool IsVulkanOrGpuNext => Core.GPUAPI == "vulkan" || Core.VO == "gpu-next"; - bool KeepSize() => App.StartSize == "session" || App.StartSize == "always"; bool IsMouseInOSC() @@ -1036,7 +1034,7 @@ namespace mpvnet if (WindowState == FormWindowState.Maximized) Core.SetPropertyBool("window-maximized", true); - if (IsVulkanOrGpuNext) + if (Core.GPUAPI == "vulkan") Core.ProcessCommandLine(false); WPF.Init();