CComponentsPIP: fix centering of image

auto centering was broken, eg.to see in channellist if radio mode was enabled


Origin commit data
------------------
Commit: c027412832
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-12 (Sun, 12 Oct 2014)
This commit is contained in:
2014-10-12 22:41:05 +02:00
parent 0e7495bde4
commit b021ee0e81

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