diff options
Diffstat (limited to 'generator')
-rw-r--r-- | generator/pamgradient.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generator/pamgradient.c b/generator/pamgradient.c index 7717bf4b..08db86e3 100644 --- a/generator/pamgradient.c +++ b/generator/pamgradient.c @@ -124,10 +124,8 @@ static int isgray(struct pam * const pamP, tuple const color) { - return (pamP->depth == 1) - || ((pamP->depth == 3) - && (color[PAM_RED_PLANE] == color[PAM_GRN_PLANE]) - && (color[PAM_RED_PLANE] == color[PAM_BLU_PLANE])); + return (color[PAM_RED_PLANE] == color[PAM_GRN_PLANE]) + && (color[PAM_RED_PLANE] == color[PAM_BLU_PLANE]); } |