update version, refresh pixmap sz limit
[goodguy/history.git] / cinelerra-5.1 / cinelerra / resourcepixmap.C
index 00cf796548eb33a7c3c91f83b54e652819bd9df6..f184e2fe17d23f5757aaa88a4ae39b86c6b31e6e 100644 (file)
@@ -852,8 +852,11 @@ void ResourcePixmap::draw_video_resource(TrackCanvas *canvas,
        int64_t picon_h = edit->picon_h();
 
 
-// Don't draw video if picon is empty or bigger than edit
-       if( picon_w <= 0 || picon_w > edit_w ) return;
+//     if( picon_w <= 0 || picon_w > edit_w ) return;
+// Don't draw video if picon is empty, or edit only hairline
+       if( picon_w < 1 || edit_w < 2 ) return;
+// or bigger than edit and fills at less than 1.5 percent timeline
+       if( picon_w > edit_w && edit_w < canvas->get_w()/64 ) return;
 
 // pixels spanned by a frame
        double frame_w = edit->frame_w();