osc.lua: remove scaleforcedwindow

This is unused since 4e013afd37 because the mpv logo and the "Drop files
or URLs to play here." message are shown instead of the OSC controls. It
has the adverse affect of making the OSC twice as big when playing
videos with --lavfi-complex, because that makes the video property which
osc.lua checks unavailable.
This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2024-05-12 21:00:38 +02:00
1 parent f220f0fb89
commit 4e5845ad03
2 files changed
+1 -9

No files matched your search

-5
View File
@@ -247,11 +247,6 @@ Configurable Options
Scale factor of the OSC when fullscreen
``scaleforcedwindow``
Default: 2.0
Scale factor of the OSC when rendered on a forced (dummy) window
``vidscale``
Default: yes
+1 -4
View File
@@ -14,7 +14,6 @@ local user_opts = {
idlescreen = true, -- show mpv logo on idle
scalewindowed = 1, -- scaling of the controller when windowed
scalefullscreen = 1, -- scaling of the controller when fullscreen
scaleforcedwindow = 2, -- scaling when rendered on a forced window
vidscale = true, -- scale the controller with the video?
valign = 0.8, -- vertical alignment, -1 (top) to 1 (bottom)
halign = 0, -- horizontal alignment, -1 (left) to 1 (right)
@@ -1780,9 +1779,7 @@ function osc_init()
local _, display_h, display_aspect = mp.get_osd_size()
local scale
if mp.get_property("video") == "no" then -- dummy/forced window
scale = user_opts.scaleforcedwindow
elseif state.fullscreen then
if state.fullscreen then
scale = user_opts.scalefullscreen
else
scale = user_opts.scalewindowed