mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
CComponentsPIP: show scaled aspect ratio in minitv box
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user