mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
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:
@@ -82,6 +82,12 @@ void CComponentsPIP::paint(bool do_save_bg)
|
|||||||
|
|
||||||
paintInit(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){
|
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv){
|
||||||
videoDecoder->Pig(pig_x+2, pig_y, pig_w, pig_h, screen_w, screen_h);
|
videoDecoder->Pig(pig_x+2, pig_y, pig_w, pig_h, screen_w, screen_h);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user