Browse Source

* src/slashdot.c: fixed stupid bug...

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@395 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 20 years ago
parent
commit
95d68a9d2f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/slashdot.c

+ 2
- 2
src/slashdot.c View File

@@ -101,10 +101,10 @@ static struct image *count_objects(struct image *img)
for(x = 0; x < dst->width; x++)
{
getpixel(dst, x, y, &r, &g, &b);
if(r == 50 && g == 50 && b == 50)
if(r == 0 && g == 0 && b == 0)
{
gotblack = 1;
filter_flood_fill(dst, x, y, 255 - objects, 0, 0);
filter_flood_fill(dst, x, y, 254 - objects, 0, 0);
objects++;
}
}


Loading…
Cancel
Save