mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
osc: don't run update_margins() every frame
This is something recent that also caused per frame log spam, because it tried to update the margins every frame.
This commit is contained in:
parent
3ed96cca88
commit
c4ae7d8203
@ -2131,9 +2131,11 @@ function hide_osc()
|
||||
end
|
||||
|
||||
function osc_visible(visible)
|
||||
state.osc_visible = visible
|
||||
if state.osc_visible ~= visible then
|
||||
state.osc_visible = visible
|
||||
update_margins()
|
||||
end
|
||||
request_tick()
|
||||
update_margins()
|
||||
end
|
||||
|
||||
function pause_state(name, enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user