diff mbox series

video: vidconsole: avoid multiple lines overwrite logo

Message ID 1591782743-22846-1-git-send-email-ye.li@nxp.com
State Accepted
Commit 8cee2006caec73e6a7b1d32e63d55efc724b07c7
Headers show
Series video: vidconsole: avoid multiple lines overwrite logo | expand

Commit Message

Ye Li June 10, 2020, 9:52 a.m. UTC
Fix the bug that multiple lines wraps to overwrite logo bmp
display.

Signed-off-by: Ye Li <ye.li at nxp.com>
---
 drivers/video/vidconsole-uclass.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jagan Teki June 17, 2020, 7:11 a.m. UTC | #1
On Wed, Jun 10, 2020 at 3:22 PM Ye Li <ye.li at nxp.com> wrote:
>
> Fix the bug that multiple lines wraps to overwrite logo bmp
> display.
>
> Signed-off-by: Ye Li <ye.li at nxp.com>
> ---

Reviewed-by: Jagan Teki <jagan at amarulasolutions.com>
Tested-by: Jagan Teki <jagan at amarulasolutions.com> # bpi-m1+, bpi-m64
Anatolij Gustschin June 29, 2020, 7:04 a.m. UTC | #2
On Wed, 10 Jun 2020 02:52:21 -0700
Ye Li ye.li at nxp.com wrote:

> Fix the bug that multiple lines wraps to overwrite logo bmp
> display.
> 
> Signed-off-by: Ye Li <ye.li at nxp.com>
> ---
>  drivers/video/vidconsole-uclass.c | 1 +
>  1 file changed, 1 insertion(+)

Applied to u-boot-video/master, thanks!

--
Anatolij
diff mbox series

Patch

diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index d30e6db..9b76154 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);
 }