// 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);