mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user