IconDes: Fixed issue with fill

git-svn-id: svn://ultimatepp.org/upp/trunk@11687 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-01-12 10:04:40 +00:00
parent 5770555a92
commit 2a896aa77e

View file

@ -26,7 +26,7 @@ bool sFloodFill::Eq(int x, int y)
{
const RGBA& q = At(x, y);
if((q.a | scolor.a) == 0) return true;
return q.a && abs(q.r - scolor.r) + abs(q.g - scolor.g) + abs(q.b - scolor.b) <= tolerance;
return abs(q.a - scolor.a) <= tolerance && abs(q.r - scolor.r) + abs(q.g - scolor.g) + abs(q.b - scolor.b) <= tolerance;
}
void sFloodFill::Try(int x, int y)