summaryrefslogtreecommitdiff
path: root/src/image_processing_effects.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-09-23 21:49:49 -0400
committerGitHub <noreply@github.com>2021-09-23 21:49:49 -0400
commit9d0f9042febd46d506110778a3beeec90c8c9c1e (patch)
treec3bf2f4b0b3183de111bfcc89fac3316f562c937 /src/image_processing_effects.c
parent0c2e9a5b4c1c0c0f2a62be6165e826760dd572cb (diff)
parenta6ab2eb883b4cef727a6caee993745cfeff1274b (diff)
Merge pull request #1498 from LOuroboros/trailingSpaces
Removed trailing spaces in the most relevant files
Diffstat (limited to 'src/image_processing_effects.c')
-rw-r--r--src/image_processing_effects.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image_processing_effects.c b/src/image_processing_effects.c
index fa6867f2c..60b105163 100644
--- a/src/image_processing_effects.c
+++ b/src/image_processing_effects.c
@@ -733,11 +733,11 @@ static u16 QuantizePixel_BlurHard(u16 *prevPixel, u16 *curPixel, u16 *nextPixel)
red = GET_R(*curPixel);
green = GET_G(*curPixel);
blue = GET_B(*curPixel);
-
+
prevAvg = (GET_R(*prevPixel) + GET_G(*prevPixel) + GET_B(*prevPixel)) / 3;
curAvg = (GET_R(*curPixel) + GET_G(*curPixel) + GET_B(*curPixel)) / 3;
nextAvg = (GET_R(*nextPixel) + GET_G(*nextPixel) + GET_B(*nextPixel)) / 3;
-
+
if (prevAvg == curAvg && nextAvg == curAvg)
return *curPixel;
@@ -1096,7 +1096,7 @@ static u16 QuantizePixel_PrimaryColors(u16* color)
u16 red = GET_R(*color);
u16 green = GET_G(*color);
u16 blue = GET_B(*color);
-
+
if (red < 12 && green < 11 && blue < 11)
return 1;