CComponentsPIP: show scaled aspect ratio in minitv box

This commit is contained in:
2013-06-16 02:01:42 +02:00
parent b7e5121001
commit e8ddd8100f

View File

@@ -81,7 +81,13 @@ void CComponentsPIP::paint(bool do_save_bg)
int pig_h = height-2*fr_thickness;
paintInit(do_save_bg);
if (videoDecoder->getAspectRatio() == 1){
int tmpw = pig_w;
pig_w -= pig_w*25/100;
pig_x += tmpw/2-pig_w/2;
}
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv){
videoDecoder->Pig(pig_x+2, pig_y, pig_w, pig_h, screen_w, screen_h);
}