mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
remove unnecessary check
This commit is contained in:
parent
b5070cb54f
commit
edff3f2009
@ -293,7 +293,7 @@ static int GetAverage(color_slot_t *s)
|
|||||||
|
|
||||||
if (s->pixel_count > 0)
|
if (s->pixel_count > 0)
|
||||||
{
|
{
|
||||||
result = (s->pixel_count == 1) ? s->value : (s->value / s->pixel_count);
|
result = s->value / s->pixel_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user