CComponents: add property to allow/disallow paint of items

This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().
This commit is contained in:
2013-11-08 21:16:42 +01:00
parent 172383b6bb
commit 8ae491a994
9 changed files with 43 additions and 15 deletions

View File

@@ -87,6 +87,9 @@ void CComponentsPIP::paint(bool do_save_bg)
pig_w -= pig_w*25/100;
pig_x += tmpw/2-pig_w/2;
}
if (!cc_allow_paint)
return;
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv){
videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h);
@@ -95,7 +98,6 @@ void CComponentsPIP::paint(bool do_save_bg)
CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER);
pic.paint(CC_SAVE_SCREEN_NO);
}
}