From 026ce896856d5cbc9717e161288fa479eb9209ee Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 4 Dec 2021 22:20:36 -0500 Subject: [PATCH] u wot m8 lmao --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 4e402bc..a8092ba 100644 --- a/src/image.c +++ b/src/image.c @@ -116,8 +116,8 @@ static inline void bitmap_read(uint8_t *buf, uint8_t *r, uint8_t *g, uint8_t *b, int channels) { *r = bitmap_read_channel(buf, x, y, stride, channels, 0); - *r = bitmap_read_channel(buf, x, y, stride, channels, 1); - *r = bitmap_read_channel(buf, x, y, stride, channels, 2); + *g = bitmap_read_channel(buf, x, y, stride, channels, 1); + *b = bitmap_read_channel(buf, x, y, stride, channels, 2); } static inline void bitmap_write_channel(uint8_t *buf,