mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
CComponentsPIP: centering alternate backkground image
Origin commit data
------------------
Commit: 4f69f4f34a
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-02 (Wed, 02 Oct 2013)
This commit is contained in:
@@ -92,7 +92,7 @@ void CComponentsPIP::paint(bool do_save_bg)
|
|||||||
videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h);
|
videoDecoder->Pig(pig_x, 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, CC_ALIGN_LEFT);
|
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);
|
pic.paint(CC_SAVE_SCREEN_NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user