Browse Source

* better efficiency

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

+ 4
- 1
src/phpbb.c View File

@@ -88,7 +88,10 @@ char *decode_phpbb(struct image *img)
int r2;
getgray(font, xmin + z, ymin + t, &r);
getgray(tmp2, x + z, y + t, &r2);
dist += (r - r2) * (r - r2);
if(r > r2)
dist += r - r2;
else
dist += (r2 - r) * 3 / 4;
}
if(dist < localmin)
{


Loading…
Cancel
Save