Skip to content

Commit

Permalink
{stats,osc}.lua: respect --osd-scale-by-window by default
Browse files Browse the repository at this point in the history
This lets these scripts scale the elements with OSD by default.
  • Loading branch information
na-na-hi committed May 16, 2024
1 parent 82f99f9 commit e1056dd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions DOCS/interface-changes/osdscale.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
change `vidscale` script option type to string for osc.lua
change `vidscale` script option type to string for stats.lua
change `vidscale` default to auto for osc.lua and stats.lua
2 changes: 1 addition & 1 deletion DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Configurable Options
Scale factor of the OSC when fullscreen

``vidscale``
Default: yes
Default: auto

Scale the OSC with the video.
``no`` tries to keep the OSC size constant as much as the window size allows.
Expand Down
2 changes: 1 addition & 1 deletion DOCS/man/stats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Configurable Options
Color used for drawing graphs.

``vidscale``
Default: yes
Default: auto

Scale the text and graphs with the video.
``no`` tries to keep the sizes constant.
Expand Down
2 changes: 1 addition & 1 deletion player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ 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
vidscale = "yes", -- scale the controller with the video?
vidscale = "auto", -- 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)
barmargin = 0, -- vertical margin of top/bottombar
Expand Down
2 changes: 1 addition & 1 deletion player/lua/stats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ local o = {
shadow_y_offset = 0.0,
shadow_color = "",
alpha = "11",
vidscale = "yes",
vidscale = "auto",

-- Custom header for ASS tags to style the text output.
-- Specifying this will ignore the text style values above and just
Expand Down

0 comments on commit e1056dd

Please sign in to comment.