From 28c916bad17acc6acb82d6a9cf9f34d334bd041e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 23 Jan 2020 21:15:52 +0100 Subject: [PATCH] cc_frm_window: fix background switch Background was always on because calling of foo.doPaintBg(false) was without any effect. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bdd611a994676a7a06156f21507dd0e0fa28181e Author: Thilo Graf Date: 2020-01-23 (Thu, 23 Jan 2020) ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index f741587e9..7918f6b81 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -149,7 +149,7 @@ void CComponentsWindow::init( const int& x_pos, const int& y_pos, const int& w, ccw_icon_name = iconname; dprintf(DEBUG_DEBUG, "[CComponentsWindow] [%s - %d] icon name = %s\n", __func__, __LINE__, ccw_icon_name.c_str()); - paint_bg = false; + paint_bg = true; shadow = shadow_mode; col_frame = color_frame; col_body = color_body; @@ -316,7 +316,7 @@ void CComponentsWindow::initBody() int w_body = width-2*fr_thickness - w_l_sidebar - w_r_sidebar; ccw_body->setDimensionsAll(x_body, h_header, w_body, h_body); - ccw_body->doPaintBg(true); + ccw_body->doPaintBg(paint_bg); ccw_body->setColorBody(col_body); //handle corner behavior