diff options
author | Ye Li <ye.li@nxp.com> | 2020-06-10 12:52:21 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2020-06-28 01:28:59 +0300 |
commit | 8cee2006caec73e6a7b1d32e63d55efc724b07c7 (patch) | |
tree | ef0c9c85f450db6f6e63355300741450d30b5b1f /drivers/video | |
parent | bab68b2d889e7d3783c4f31b67025b086b7278c3 (diff) | |
download | u-boot-8cee2006caec73e6a7b1d32e63d55efc724b07c7.tar.xz |
video: vidconsole: avoid multiple lines overwrite logo
Fix the bug that multiple lines wraps to overwrite logo bmp
display.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # bpi-m1+, bpi-m64
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/vidconsole-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index d30e6db6f6..9b76154721 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -622,6 +622,7 @@ void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row) col *= priv->x_charsize; row *= priv->y_charsize; priv->xcur_frac = VID_TO_POS(min_t(short, col, vid_priv->xsize - 1)); + priv->xstart_frac = priv->xcur_frac; priv->ycur = min_t(short, row, vid_priv->ysize - 1); } |