From 714ac33c07663973871b454219eae8a089dabcdf Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 7 Jan 2014 09:44:40 +0100 Subject: [PATCH] CInfoClock: remove call of missing members, replace with simplified clear() Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/12fd92e3e4d469c164b8c2b3c9609e7945ff2a54 Author: Thilo Graf Date: 2014-01-07 (Tue, 07 Jan 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoclock.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/infoclock.cpp b/src/gui/infoclock.cpp index f9a08f8ad..0a96fad82 100644 --- a/src/gui/infoclock.cpp +++ b/src/gui/infoclock.cpp @@ -83,10 +83,8 @@ void CInfoClock::Init() int x_old = x, y_old = y, width_old = width, height_old = height; CVolumeHelper::getInstance()->refresh(cl_font); CVolumeHelper::getInstance()->getInfoClockDimensions(&x, &y, &width, &height); - if ((x_old != x) || (y_old != y) || (width_old != width) || (height_old != height)) { - cleanCCForm(); - clearCCItems(); - } + if ((x_old != x) || (y_old != y) || (width_old != width) || (height_old != height)) + clear(); // set corner radius depending on clock height corner_rad = (g_settings.rounded_corners) ? std::max(height/10, CORNER_RADIUS_SMALL) : 0;