mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponents: add log warning if position = 0
Value 0 for embedded items should be unproblematic, buy single items should have minimum value = 1.
This commit is contained in:
@@ -107,8 +107,13 @@ void CComponents::paintFbItems(bool do_save_bg)
|
|||||||
|
|
||||||
for(size_t i=0; i< v_fbdata.size() ;i++){
|
for(size_t i=0; i< v_fbdata.size() ;i++){
|
||||||
// Don't paint if dx or dy are 0
|
// Don't paint if dx or dy are 0
|
||||||
if ((v_fbdata[i].dx == 0) || (v_fbdata[i].dy == 0))
|
if ((v_fbdata[i].dx == 0) || (v_fbdata[i].dy == 0)){
|
||||||
|
printf(" [CComponents] WARNING:\n [%s - %d], dx = %d\n dy = %d\n", __FUNCTION__, __LINE__, v_fbdata[i].dx, v_fbdata[i].dy);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
if ((v_fbdata[i].x == 0) || (v_fbdata[i].y == 0)){
|
||||||
|
printf(" [CComponents] WARNING:\n [%s - %d], x = %d\n y = %d\n", __FUNCTION__, __LINE__, v_fbdata[i].x, v_fbdata[i].y);
|
||||||
|
}
|
||||||
|
|
||||||
int fbtype = v_fbdata[i].fbdata_type;
|
int fbtype = v_fbdata[i].fbdata_type;
|
||||||
#ifdef DEBUG_CC
|
#ifdef DEBUG_CC
|
||||||
|
Reference in New Issue
Block a user