summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorChrisK2 <spam@kalania.de>2014-08-21 18:45:41 +0200
committerChrisK2 <spam@kalania.de>2014-08-21 18:45:41 +0200
commit03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c (patch)
tree6f9e78ffb9b73051d3879c3e91fc3f33c470da50 /player
parentc3cc9e8b88e1212821700ba6f38320a1b8792164 (diff)
downloadmpv-03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c.tar.bz2
mpv-03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c.tar.xz
osd+osc: Add left-arrow to osd-font
For use as playlist navigation button in OSC, now the osd-font carries all symbols needed by the OSC.
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 06974239c7..abbec6229f 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1000,7 +1000,7 @@ function osc_init()
-- prev
ne = new_element("pl_prev", "button")
- ne.content = "◀"
+ ne.content = "\238\132\144"
ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("playlist_prev", "weak") end
@@ -1010,7 +1010,7 @@ function osc_init()
--next
ne = new_element("pl_next", "button")
- ne.content = "▶"
+ ne.content = "\238\132\129"
ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("playlist_next", "weak") end
@@ -1538,6 +1538,8 @@ function enable_osc(enable)
end
end
+mp.use_suspend=false
+
mp.register_event("tick", tick)
mp.register_event("start-file", request_init)
mp.register_event("tracks-changed", request_init)