X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fresourcepixmap.C;h=6f74c85dcf3a4de2a052acd1a1139a9424b707d4;hb=be403bc2d9c183c2a6ac3d77a3a03523759d6024;hp=319c6b4023dc7def7fb075bd847a4f898ea95f26;hpb=38781123230e8017af7b11621a78f63fa33a764e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/resourcepixmap.C b/cinelerra-5.1/cinelerra/resourcepixmap.C index 319c6b40..6f74c85d 100644 --- a/cinelerra-5.1/cinelerra/resourcepixmap.C +++ b/cinelerra-5.1/cinelerra/resourcepixmap.C @@ -434,29 +434,7 @@ void ResourcePixmap::draw_title(TrackCanvas *canvas, // if( total_x > -BC_INFINITY ) { char title[BCTEXTLEN]; - char channel[BCTEXTLEN]; - title[0] = 0; - channel[0] = 0; - FileSystem fs; - - if( edit->user_title[0] ) - strcpy(title, edit->user_title); - else if( edit->nested_edl ) { -//printf("ResourcePixmap::draw_title %s\n", edit->nested_edl->project_path); - fs.extract_name(title, edit->nested_edl->path); - -// EDLs only have 1 video output - if( edit->track->data_type == TRACK_AUDIO ) { - sprintf(channel, " #%d", edit->channel + 1); - strcat(title, channel); - } - } - else if( edit->asset ) { - fs.extract_name(title, edit->asset->path); - sprintf(channel, " #%d", edit->channel + 1); - strcat(title, channel); - } - + edit->get_title(title); canvas->set_color(mwindow->theme->title_color); canvas->set_font(mwindow->theme->title_font);