CComponents: add setColBodyGradient() to set gradient properties

This provides possibility to set relevant gradiant properties in cc sub classes
This commit is contained in:
2014-09-20 21:35:02 +02:00
committed by [CST] Focus
parent 581405e076
commit f9147d185a
6 changed files with 28 additions and 10 deletions

View File

@@ -64,7 +64,7 @@ CComponents::CComponents() : COSDFader(g_settings.theme.menu_Content_alpha)
frameBuffer = CFrameBuffer::getInstance();
v_fbdata.clear();
saved_screen.pixbuf = NULL;
cc_gradientBuf = NULL;
cc_body_gradientBuf = NULL;
col_body_gradient = false;
}
@@ -73,6 +73,8 @@ CComponents::~CComponents()
hide();
clearSavedScreen();
clearFbData();
if (cc_body_gradientBuf)
free(cc_body_gradientBuf);
}
void CComponents::clearSavedScreen()