tiny bugfix timeline gaps

This commit is contained in:
brunoherbelin
2020-08-21 23:03:36 +02:00
parent 710514b478
commit 9f954d258f
2 changed files with 9 additions and 10 deletions

View File

@@ -1353,7 +1353,7 @@ void MediaController::Render()
uint press_index = array_size;
bool pressed = ImGuiToolkit::InvisibleSliderInt("##TimelinePicking", &press_index, 0, array_size-1, size);
bool pressed = ImGuiToolkit::InvisibleSliderInt("##TimelinePicking", &press_index, 0, array_size, size);
// behavior on action on array of segments
static bool active = false;
@@ -1379,7 +1379,7 @@ void MediaController::Render()
// back to drawing position to draw the segments data with historgram
ImGui::SetCursorPos(draw_pos);
{
ImGui::PlotHistogram("##TimelineHistogram", array, array_size-1.f, 0, NULL, 0.0f, 1.0f, size);
ImGui::PlotHistogram("##TimelineHistogram", array, array_size, 0, NULL, 0.0f, 1.0f, size);
}
// custom timeline slider