CComponentsPIP: apply left align for image, dont' save screen

This ensures a clean end on the left edge and save screen is not needed.
This commit is contained in:
2013-03-22 23:12:08 +01:00
parent e7984e6c73
commit b07c4231ef

View File

@@ -82,11 +82,11 @@ void CComponentsPIP::paint(bool do_save_bg)
paintInit(do_save_bg); paintInit(do_save_bg);
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv){ if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv){
videoDecoder->Pig(pig_x, 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);
} }
else{ //paint an alternate image if no tv mode available else{ //paint an alternate image if no tv mode available
CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name); CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_LEFT);
pic.paint(); pic.paint(CC_SAVE_SCREEN_NO);
} }
} }