mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user