X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fresourcepixmap.C;h=cd93e6541abcd051b830cd5f3a3cb64fa42a6c1a;hb=e23393f4ff9f772ac8f47926cf490dc87a630ed4;hp=0da77299438ab769f192132e0ac216392d5ed37f;hpb=d5a0afb9bc8562f6c2698f88ff40790009a5e63c;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/resourcepixmap.C b/cinelerra-5.1/cinelerra/resourcepixmap.C index 0da77299..cd93e654 100644 --- a/cinelerra-5.1/cinelerra/resourcepixmap.C +++ b/cinelerra-5.1/cinelerra/resourcepixmap.C @@ -270,13 +270,15 @@ VFrame *ResourcePixmap::change_picon_alpha(VFrame *picon_frame, int alpha) { uint8_t **picon_rows = picon_frame->get_rows(); int w = picon_frame->get_w(), h = picon_frame->get_h(); + int color_model = picon_frame->get_color_model(); + int bpp = BC_CModels::calculate_pixelsize(color_model); VFrame *frame = new VFrame(w, h, BC_RGBA8888); uint8_t **rows = frame->get_rows(); for( int y=0; y