CComponentsPIP: fix centering of image

auto centering was broken, eg.to see in channellist if radio mode was enabled
This commit is contained in:
2014-10-12 22:41:05 +02:00
parent 8227638c06
commit c027412832

View File

@@ -101,6 +101,10 @@ void CComponentsPIP::paint(bool do_save_bg)
}
else{ //paint an alternate image if no tv mode available
CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, NULL, false, col_frame, col_frame);
pic.doPaintBg(false);
int w, h;
pic.getSize(&w, &h);
pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);
pic.setCorner(corner_rad, corner_type);
pic.paint(CC_SAVE_SCREEN_NO);
}