mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user