mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
CComponentsPIP: show scaled aspect ratio in minitv box
This commit is contained in:
@@ -82,6 +82,12 @@ void CComponentsPIP::paint(bool do_save_bg)
|
||||
|
||||
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