video: Update truetype console to support copy buffer
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:25 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commit3ad740ac667226f110e56599deacbf58cb74004c
tree5fde03cc94ae71769cfeec55bdf6b9d6411ff0f3
parent68f3fc767c33694d63f1dbaef5ff1b0a4cb27d43
video: Update truetype console to support copy buffer

Update the implementation to keep a track of what it changes in the frame
buffer and then tell the copy buffer about it. Use the special
vidconsole_memmove() helper so that memmove() operations are also
reflected in the copy buffer.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/video/console_truetype.c