Changeset 4699 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 08/23/04 09:32:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/FilterLed.cc
r4105 r4699 367 367 // 368 368 // Define outer box (excluding inner box) having almost 369 // the same nu ymber of pixels in which the background369 // the same number of pixels in which the background 370 370 // is calculated 371 371 // … … 391 391 392 392 int n=0; 393 for (int x=xa; x<xb +1; x++)394 for (int y=ya; y<yb +1; y++)395 { 396 if (x> x0 && x<x1 && y>y0 && y<y1)393 for (int x=xa; x<xb; x++) 394 for (int y=ya; y<yb; y++) 395 { 396 if (x>=x0 && x<x1 && y>=y0 && y<y1) 397 397 continue; 398 398 … … 429 429 // Mark the background region 430 430 // 431 for (int x=xa; x<xb +1; x+=2)431 for (int x=xa; x<xb; x+=2) 432 432 { 433 433 fImg[ya*fW+x]=0xf0; 434 434 fImg[yb*fW+x]=0xf0; 435 435 } 436 for (int y=ya; y<yb +1; y+=2)436 for (int y=ya; y<yb; y+=2) 437 437 { 438 438 fImg[y*fW+xa]=0xf0;
Note:
See TracChangeset
for help on using the changeset viewer.