summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAleksey Kuleshov <rndfax@yandex.ru>2015-11-06 08:52:17 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-06 07:35:11 +0100
commit769ddc6133cd8a6d0bca7356a9f6b7b718f16dbf (patch)
tree2fc346deee9672828de9ea5a884c5cad757ff521 /drivers/video
parent867b30a0a04b770bff328cc7170615224f80afeb (diff)
downloadbarebox-769ddc6133cd8a6d0bca7356a9f6b7b718f16dbf.tar.gz
barebox-769ddc6133cd8a6d0bca7356a9f6b7b718f16dbf.tar.xz
fbconsole: no need to copy extra line
Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbconsole.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index b10503eb84..c38d13c304 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;
}