Player UI: video menu and speed reset icon

+ rename private variables to follow usual style
This commit is contained in:
Bruno
2021-06-16 23:12:31 +02:00
parent f59d4af92b
commit 0010c9e3d5
3 changed files with 228 additions and 215 deletions

View File

@@ -537,11 +537,12 @@ void ImGuiToolkit::RenderTimeline (ImGuiWindow* window, ImRect timeline_bbox, gu
guint64 tick = 0;
while ( tick < duration )
{
// large tick mark
// large tick mark ?
float tick_length = (tick%large_tick_step) ? style.FramePadding.y : fontsize - style.FramePadding.y;
// label tick mark
if ( !(tick%label_tick_step) ) {
if ( !(tick%label_tick_step) )
{
tick_length = fontsize;
guint64 ticklabel = 100 * (guint64) round( (double)( tick + start) / 100.0); // round value to avoid '0.99' and alike
ImFormatString(text_buf, IM_ARRAYSIZE(text_buf), "%s",