mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-02 19:22:00 +02:00
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
This commit is contained in:
parent
bab68b2d88
commit
8cee2006ca
@ -622,6 +622,7 @@ void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row)
|
|||||||
col *= priv->x_charsize;
|
col *= priv->x_charsize;
|
||||||
row *= priv->y_charsize;
|
row *= priv->y_charsize;
|
||||||
priv->xcur_frac = VID_TO_POS(min_t(short, col, vid_priv->xsize - 1));
|
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);
|
priv->ycur = min_t(short, row, vid_priv->ysize - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user