Cleanup Media Player

This commit is contained in:
brunoherbelin
2020-03-22 23:33:29 +01:00
parent 31e2b6da79
commit ca0db135e7
7 changed files with 125 additions and 52 deletions

View File

@@ -215,7 +215,7 @@ bool ImGuiToolkit::TimelineSlider(const char* label, guint64 *time, guint64 dura
// how many pixels to represent one frame step?
float tick_step_pixels = timeline_bbox.GetWidth() * step_;
// while there is less than 3 pixels between two tick marks (or at last optimal tick mark)
for ( int i=0; i<10 && tick_step_pixels < 3.f; ++i )
for ( int i=0; i<10 && tick_step_pixels < 5.f; ++i )
{
// try to use the optimal tick marks pre-defined
tick_step = optimal_tick_marks[i];