CComponents::paintFbItems: Don't paint item if dx or dy are 0

Origin commit data
------------------
Branch: ni/coolstream
Commit: 309b371060
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-08 (Wed, 08 May 2013)

Origin message was:
------------------
* CComponents::paintFbItems: Don't paint item if dx or dy are 0

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2013-05-08 08:02:30 +02:00
parent d6c76ef8a8
commit 0f4479bdbd

View File

@@ -120,6 +120,10 @@ 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
if ((v_fbdata[i].dx == 0) || (v_fbdata[i].dy == 0))
continue;
int fbtype = v_fbdata[i].fbdata_type; int fbtype = v_fbdata[i].fbdata_type;
#ifdef DEBUG_CC #ifdef DEBUG_CC
printf(" [CComponents]\n [%s - %d], fbdata_[%d] \n x = %d\n y = %d\n dx = %d\n dy = %d\n", __FUNCTION__, __LINE__, i, v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy); printf(" [CComponents]\n [%s - %d], fbdata_[%d] \n x = %d\n y = %d\n dx = %d\n dy = %d\n", __FUNCTION__, __LINE__, i, v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy);