From 79b201d895d0d3c2d89e65ab5e4e0f63314e8475 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 12 Oct 2014 22:41:05 +0200 Subject: [PATCH] CComponentsPIP: fix centering of image auto centering was broken, eg.to see in channellist if radio mode was enabled Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c027412832ab54f703d3a6f3b5403121c8b7f3f6 Author: Thilo Graf Date: 2014-10-12 (Sun, 12 Oct 2014) ------------------ This commit was generated by Migit --- src/gui/components/cc_item_tvpic.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/components/cc_item_tvpic.cpp b/src/gui/components/cc_item_tvpic.cpp index 40ea55adf..8bc4a5ee1 100644 --- a/src/gui/components/cc_item_tvpic.cpp +++ b/src/gui/components/cc_item_tvpic.cpp @@ -101,6 +101,10 @@ void CComponentsPIP::paint(bool do_save_bg) } else{ //paint an alternate image if no tv mode available CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, NULL, false, col_frame, col_frame); + pic.doPaintBg(false); + int w, h; + pic.getSize(&w, &h); + pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2); pic.setCorner(corner_rad, corner_type); pic.paint(CC_SAVE_SCREEN_NO); }