Skip to contentSkip to conversation

modify fbtft/fb_agm1264k-fl.c

PATCH New Adam Kandur 1 participant 1 message Jun 2, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 modify fbtft/fb_agm1264k-fl.c

From b8bcaa200c97a6054efdb2c58acf5cf794c150d1 Mon Sep 17 00:00:00 2001
From: Adam Kandur <[email protected]>
Date: Wed, 2 Jun 2021 12:12:48 +0300
Subject: [PATCH] modify fbtft/fb_agm1264k-fl.c

---
drivers/staging/fbtft/fb_agm1264k-fl.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fbtft/fb_agm1264k-fl.c +0 -0
index eeeeec97a..2e58c9d1a 100644
@@ -273,10 +273,10 @@ static void iterate_diffusion_matrix(u32 xres, u32 yres, int x,

continue;
write_pos = &convert_buf[(y + j) * xres + x + i];
coeff = diffusing_matrix[i][j];
- if (-1 == coeff) {
+ if (-1 == coeff)
/* pixel itself */
*write_pos = pixel;
- } else {
+ else {
signed short p = *write_pos + error * coeff;

if (p > WHITE)
--
2.31.1