瀏覽代碼

* 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 年之前
父節點
當前提交
95d68a9d2f
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/slashdot.c

+ 2
- 2
src/slashdot.c 查看文件

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


||||||
x
 
000:0
Loading…
取消
儲存