1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

osc: set an arbitrary high Z-order

The main reason for this is just to make show the OSC always above
console.lua, instead of a random order.

(And this is also the only reason osc.lua was changed to the new API.
The old API could have been extended, but lets not.)
This commit is contained in:
wm4 2019-12-23 11:50:31 +01:00
parent 490b3ba007
commit 86d24b069b

View File

@ -137,6 +137,7 @@ function set_osd(res_x, res_y, text)
state.osd.res_x = res_x
state.osd.res_y = res_y
state.osd.data = text
state.osd.z = 1000
state.osd:update()
end