From 7d555c7ffe81fb4b58e88fdb0c274cf240d41105 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 2 Dec 2021 13:50:51 +0100 Subject: [PATCH] cc_item_tvpic: simplify and fix object creation of pic color was wrong Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/808ce0af1aabf5576b98a0938e15a941c6b76734 Author: Thilo Graf Date: 2021-12-02 (Thu, 02 Dec 2021) --- src/gui/components/cc_item_tvpic.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/components/cc_item_tvpic.cpp b/src/gui/components/cc_item_tvpic.cpp index 6c589662f..943c5e3ca 100644 --- a/src/gui/components/cc_item_tvpic.cpp +++ b/src/gui/components/cc_item_tvpic.cpp @@ -100,8 +100,7 @@ void CComponentsPIP::paint(const bool &do_save_bg) videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h); } else{ //paint an alternate image if no tv mode available - CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, NULL, CC_SHADOW_OFF, col_frame, col_frame); - pic.doPaintBg(false); + CComponentsPicture pic(pig_x, pig_y, pig_w, pig_h, pic_name, NULL, CC_SHADOW_OFF, col_frame, col_body_std, col_shadow); int w, h; pic.getSize(&w, &h); pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);