video: Update rotated console to support copy buffer
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:26 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commitc30c5f275b27a8f6183763893c279297a36274ac
treea6fbe27c4b0f749ae9d8735d321f04edf7409d75
parent3ad740ac667226f110e56599deacbf58cb74004c
video: Update rotated 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_rotate.c