[Phission-cvs] phission/filter/video/src blob_Filter.cpp,1.3,1.4
Brought to you by:
pthoren
From: Philip T. <pt...@us...> - 2004-04-15 20:10:47
|
Update of /cvsroot/phission/phission/filter/video/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9503/filter/video/src Modified Files: blob_Filter.cpp Log Message: Fixed small bug in removeColor; It would have copied more than it should when shrinking the list down. Index: blob_Filter.cpp =================================================================== RCS file: /cvsroot/phission/phission/filter/video/src/blob_Filter.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** blob_Filter.cpp 15 Apr 2004 18:57:46 -0000 1.3 --- blob_Filter.cpp 15 Apr 2004 20:10:36 -0000 1.4 *************** *** 1731,1735 **** { /* Copy the end of the list over the removed color */ ! uint32_t copyCount = (this->m_nColors - i); if (copyCount > 0) --- 1731,1744 ---- { /* Copy the end of the list over the removed color */ ! /* Ex: ! * ! * [0][1][2][3][4] ! * ^------remove this ! * i == 3 ! * m_nColors == 5 ! * copyCount == 5 - ( 3 + 1 ) == 5 - 4 == 1 ! */ ! ! uint32_t copyCount = (this->m_nColors - (i+1)); if (copyCount > 0) |