+
+ draw_inout_highlight();
+}
+
+void TimeBar::draw_inout_highlight()
+{
+ EDL *edl = get_edl();
+ if( !edl->local_session->inpoint_valid() ) return;
+ if( !edl->local_session->outpoint_valid() ) return;
+ double in_position = edl->local_session->get_inpoint();
+ double out_position = edl->local_session->get_outpoint();
+ if( in_position >= out_position ) return;
+ int in_x = position_to_pixel(in_position);
+ int out_x = position_to_pixel(out_position);
+ CLAMP(in_x, 0, get_w());
+ CLAMP(out_x, 0, get_w());
+ set_color(GREEN);
+ int lw = 5;
+ set_line_width(lw);
+ set_inverse();
+ draw_line(in_x, get_h()-2*lw, out_x, get_h()-2*lw);
+ set_opaque();
+ set_line_width(1);