X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftimebar.C;h=03fa0357526810069023c7e9bd528a6ebdd2530a;hb=f3adc7285af86851913b48592a8c4fdfcdcdf8b6;hp=ed0011cd71f102a52d9b4b45f81436533f1a1536;hpb=95683646dce10ad3f6a8c8c9c9225c69f4841ec5;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/timebar.C b/cinelerra-5.1/cinelerra/timebar.C index ed0011cd..03fa0357 100644 --- a/cinelerra-5.1/cinelerra/timebar.C +++ b/cinelerra-5.1/cinelerra/timebar.C @@ -97,7 +97,7 @@ int LabelGUI::button_press_event() if( this->is_event_win() && get_buttonpress() == 3 ) { if( label ) { int cur_x, cur_y; - get_abs_cursor_xy(cur_x, cur_y, 0); + get_abs_cursor(cur_x, cur_y, 0); timebar->label_edit->start(label, cur_x, cur_y); } result = 1; @@ -430,7 +430,10 @@ void TimeBar::update(int flush) double position = edl->local_session->get_selectionstart(1); int64_t pixel = position_to_pixel(position); // Draw insertion point position. - set_color(mwindow->theme->timebar_cursor_color); + int color = mwindow->theme->timebar_cursor_color; + if( mwindow->preferences->forward_render_displacement ) + color ^= 0x00ffff; + set_color(color); draw_line(pixel, 0, pixel, get_h()); } @@ -519,8 +522,8 @@ double TimeBar::get_edl_length() edl_length = 0; if( get_edl() ) { -//printf("TimeBar::get_edl_length 1 %f\n", get_edl()->tracks->total_playable_length()); - edl_length = get_edl()->tracks->total_playable_length(); +//printf("TimeBar::get_edl_length 1 %f\n", get_edl()->tracks->total_length()); + edl_length = get_edl()->tracks->total_length(); } //printf("TimeBar::get_edl_length 2\n");