EventsRequest *events_request;
LttvTracesetState *tss;
LttTime end_time;
+ guint x_end;
} ClosureData;
#endif //EXTRA_CHECK
Drawing_t *drawing = control_flow_data->drawing;
guint width = drawing->width;
- guint x;
- convert_time_to_pixels(
- time_window,
- evtime,
- width,
- &x);
+ guint x = closure_data->x_end;
DrawContext draw_context;
closure_data.tss = tss;
closure_data.end_time = end_time;
+ TimeWindow time_window =
+ lttvwindow_get_time_window(control_flow_data->tab);
+ guint width = control_flow_data->drawing->width;
+ convert_time_to_pixels(
+ time_window,
+ end_time,
+ width,
+ &closure_data.x_end);
+
+
/* Draw last items */
g_hash_table_foreach(process_list->process_hash, draw_closure,
(void*)&closure_data);
closure_data.tss = tss;
closure_data.end_time = end_time;
+ TimeWindow time_window =
+ lttvwindow_get_time_window(control_flow_data->tab);
+ guint width = control_flow_data->drawing->width;
+ convert_time_to_pixels(
+ time_window,
+ end_time,
+ width,
+ &closure_data.x_end);
+
/* Draw last items */
g_hash_table_foreach(process_list->process_hash, draw_closure,
(void*)&closure_data);