mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-29 06:12:18 -06:00
IconDes: Fixed issue with fill
git-svn-id: svn://ultimatepp.org/upp/trunk@11687 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5770555a92
commit
2a896aa77e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue