mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user