Player slight improvements

tick marks count adapted to fps, clamped refresh frequency computation, listing of all sources playable from menu
This commit is contained in:
Bruno
2021-06-19 00:47:47 +02:00
parent 1a1956962a
commit 6cc5a8af9e
3 changed files with 16 additions and 5 deletions

View File

@@ -483,7 +483,7 @@ void ImGuiToolkit::RenderTimeline (ImGuiWindow* window, ImRect timeline_bbox, gu
{
// try to put a label ticks every second
label_tick_step = (SECOND / step) * step;
large_tick_step = 5 * step;
large_tick_step = label_tick_step % 5 ? (label_tick_step % 2 ? label_tick_step : label_tick_step / 2 ) : label_tick_step / 5;
tick_delta = SECOND - label_tick_step;
// round to nearest