From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Cc: Aleksey Kuleshov <rndfax@yandex.ru>
Subject: [PATCH 1/3] fbconsole: no need to copy extra line
Date: Fri, 6 Nov 2015 08:52:17 +0300 [thread overview]
Message-ID: <1446789139-4781-2-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1446789139-4781-1-git-send-email-antonynpavlov@gmail.com>
From: Aleksey Kuleshov <rndfax@yandex.ru>
Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru>
---
drivers/video/fbconsole.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index b10503e..c38d13c 100644
--- a/drivers/video/fbconsole.c
+++ b/drivers/video/fbconsole.c
@@ -192,8 +192,9 @@ static void printchar(struct fbc_priv *priv, int c)
buf = gui_screen_render_buffer(priv->sc);
- memcpy(buf, buf + line_height, line_height * (priv->rows + 1));
+ memcpy(buf, buf + line_height, line_height * priv->rows);
memset(buf + line_height * priv->rows, 0, line_height);
+
gu_screen_blit(priv->sc);
priv->y = priv->rows;
}
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-11-06 5:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 5:52 [PATCH 0/3] fb & fbconsole misc fixes Antony Pavlov
2015-11-06 5:52 ` Antony Pavlov [this message]
2015-11-06 5:52 ` [PATCH 2/3] fb: satisfy semantics for shadowfb's alloc/free Antony Pavlov
2015-11-06 5:52 ` [PATCH 3/3] fb: alloc or free shadowfb whether fb enabled or disabled Antony Pavlov
2015-11-06 6:35 ` [PATCH 0/3] fb & fbconsole misc fixes Sascha Hauer
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=1446789139-4781-2-git-send-email-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=rndfax@yandex.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox