From: Adam Kandur <rndd@tuta.io>
To: linux-fbdev@vger.kernel.org
Subject: [PATCH] modify fbtft/fb_agm1264k-fl.c
Date: Wed, 2 Jun 2021 11:24:07 +0200 (CEST) [thread overview]
Message-ID: <MbB1N7h--3-2@tuta.io> (raw)
From b8bcaa200c97a6054efdb2c58acf5cf794c150d1 Mon Sep 17 00:00:00 2001
From: Adam Kandur <rndd@tuta.io>
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(-)
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
index eeeeec97a..2e58c9d1a 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -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
reply other threads:[~2021-06-02 9:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MbB1N7h--3-2@tuta.io \
--to=rndd@tuta.io \
--cc=linux-fbdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.