novideo: Show/hide overlay and controls.

As with video playback, display controls and overlay
when audio is playing. Thus we can see the controls with high
brightness artwork and it shows/hides on mouseover.
This commit is contained in:
Alastair Poole 2019-12-01 14:19:27 +00:00
parent 141a8624f6
commit 60901bfa84
1 changed files with 2 additions and 6 deletions

View File

@ -76,11 +76,7 @@ collections {
}
t = get_int(pos_timer);
if (t) cancel_timer(t);
if (!get_int(novideo)) {
t = timer(5.0, "pos_timeout", 1);
} else {
t = 0;
}
t = timer(5.0, "pos_timeout", 1);
set_int(pos_timer, t);
}
}
@ -573,7 +569,7 @@ collections {
}
program {
signal: "state,novideo"; source: "rage";
action: STATE_SET "novideo" 0.0;
action: STATE_SET "default" 0.0;
target: "controlbar";
}
program {