CInfoClock: remove call of missing members, replace with simplified clear()

Origin commit data
------------------
Commit: 12fd92e3e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
This commit is contained in:
2014-01-07 09:44:40 +01:00
parent 45f12fbb6c
commit db397fda24

View File

@@ -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;