CComponentsPIP: show scaled aspect ratio in minitv box

Origin commit data
------------------
Commit: e8ddd8100f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)
This commit is contained in:
2013-06-16 02:01:42 +02:00
parent c4f59ee308
commit ea1fb7abbd

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