summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/lua/osc.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index a9c5f503ca..8997ae4ac6 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1487,8 +1487,10 @@ function osc_init()
osc_param.unscaled_y = display_h
end
osc_param.playresy = osc_param.unscaled_y / scale
- osc_param.playresx = osc_param.playresy * display_aspect
- osc_param.display_aspect = display_aspect
+ if (display_aspect > 0) then
+ osc_param.display_aspect = display_aspect
+ end
+ osc_param.playresx = osc_param.playresy * osc_param.display_aspect
@@ -2031,7 +2033,8 @@ function render()
end
-- submit
- mp.set_osd_ass(osc_param.playresy * aspect, osc_param.playresy, ass.text)
+ mp.set_osd_ass(osc_param.playresy * osc_param.display_aspect,
+ osc_param.playresy, ass.text)