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.
Unified · Split
| @@ -247,11 +247,6 @@ Configurable Options · 246 unmodified lines | ||
| 247 | 247 | |
| 248 | 248 | Scale factor of the OSC when fullscreen |
| 249 | 249 | |
| 250 | −``scaleforcedwindow`` | |
| 251 | − Default: 2.0 | |
| 252 | − | |
| 253 | − Scale factor of the OSC when rendered on a forced (dummy) window | |
| 254 | − | |
| 255 | 250 | ``vidscale`` |
| 256 | 251 | Default: yes |
| 257 | 252 | |
| @@ -14,7 +14,6 @@ local user_opts = { · 13 unmodified lines | ||
| 14 | 14 | idlescreen = true, -- show mpv logo on idle |
| 15 | 15 | scalewindowed = 1, -- scaling of the controller when windowed |
| 16 | 16 | scalefullscreen = 1, -- scaling of the controller when fullscreen |
| 17 | − scaleforcedwindow = 2, -- scaling when rendered on a forced window | |
| 18 | 17 | vidscale = true, -- scale the controller with the video? |
| 19 | 18 | valign = 0.8, -- vertical alignment, -1 (top) to 1 (bottom) |
| 20 | 19 | halign = 0, -- horizontal alignment, -1 (left) to 1 (right) |
| @@ -1780,9 +1779,7 @@ function osc_init() · 1759 unmodified lines | ||
| 1780 | 1779 | local _, display_h, display_aspect = mp.get_osd_size() |
| 1781 | 1780 | local scale |
| 1782 | 1781 | |
| 1783 | − if mp.get_property("video") == "no" then -- dummy/forced window | |
| 1784 | − scale = user_opts.scaleforcedwindow | |
| 1785 | − elseif state.fullscreen then | |
| 1782 | + if state.fullscreen then | |
| 1786 | 1783 | scale = user_opts.scalefullscreen |
| 1787 | 1784 | else |
| 1788 | 1785 | scale = user_opts.scalewindowed |