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

This commit is contained in:
2014-01-07 09:44:40 +01:00
parent a6c2518017
commit 12fd92e3e4

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;