mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
video: Clear the copy framebuffer when clearing the screen
Update video_clear() to also sync to the copy framebuffer. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
6efa809dde
commit
138dfea86f
|
@ -95,6 +95,7 @@ int video_reserve(ulong *addrp)
|
||||||
int video_clear(struct udevice *dev)
|
int video_clear(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct video_priv *priv = dev_get_uclass_priv(dev);
|
struct video_priv *priv = dev_get_uclass_priv(dev);
|
||||||
|
int ret;
|
||||||
|
|
||||||
switch (priv->bpix) {
|
switch (priv->bpix) {
|
||||||
case VIDEO_BPP16:
|
case VIDEO_BPP16:
|
||||||
|
@ -119,6 +120,9 @@ int video_clear(struct udevice *dev)
|
||||||
memset(priv->fb, priv->colour_bg, priv->fb_size);
|
memset(priv->fb, priv->colour_bg, priv->fb_size);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ret = video_sync_copy(dev, priv->fb, priv->fb + priv->fb_size);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user