X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fawindowgui.C;h=796a739e6315b99e940bdfc968ffbf08045bfb5d;hb=0e00daab15d8b871ec7f76c2713b75d5f3fb237d;hp=094ef19b99aa20bb831cfb4dae9e54e5c6586596;hpb=b55798fc64eee00c6fab3b4763e791befb7275f9;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/awindowgui.C b/cinelerra-5.1/cinelerra/awindowgui.C index 094ef19b..796a739e 100644 --- a/cinelerra-5.1/cinelerra/awindowgui.C +++ b/cinelerra-5.1/cinelerra/awindowgui.C @@ -622,20 +622,23 @@ void AssetPicon::create_objects() icon_vframe = VFramePng::vframe_png(clip_icon_path); } if( !icon_vframe ) { +printf("render clip: %s\n", name); int edl_h = edl->get_h(), edl_w = edl->get_w(); int height = edl_h > 0 ? edl_h : 1; int width = edl_w > 0 ? edl_w : 1; + int color_model = edl->session->color_model; pixmap_w = pixmap_h * width / height; if( gui->temp_picon && - (gui->temp_picon->get_w() != width || + (gui->temp_picon->get_color_model() != color_model || + gui->temp_picon->get_w() != width || gui->temp_picon->get_h() != height) ) { delete gui->temp_picon; gui->temp_picon = 0; } if( !gui->temp_picon ) { gui->temp_picon = new VFrame(0, -1, - width, height, BC_RGB888, -1); + width, height, color_model, -1); } char string[BCTEXTLEN]; sprintf(string, _("Rendering %s"), name);