提交 138dfea8 编写于 作者: S Simon Glass 提交者: Bin Meng

video: Clear the copy framebuffer when clearing the screen

Update video_clear() to also sync to the copy framebuffer.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NAnatolij Gustschin <agust@denx.de>
Tested-by: NBin Meng <bmeng.cn@gmail.com>
上级 6efa809d
......@@ -95,6 +95,7 @@ int video_reserve(ulong *addrp)
int video_clear(struct udevice *dev)
{
struct video_priv *priv = dev_get_uclass_priv(dev);
int ret;
switch (priv->bpix) {
case VIDEO_BPP16:
......@@ -119,6 +120,9 @@ int video_clear(struct udevice *dev)
memset(priv->fb, priv->colour_bg, priv->fb_size);
break;
}
ret = video_sync_copy(dev, priv->fb, priv->fb + priv->fb_size);
if (ret)
return ret;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册