projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab68b2
)
video: vidconsole: avoid multiple lines overwrite logo
author
Ye Li
<ye.li@nxp.com>
Wed, 10 Jun 2020 09:52:21 +0000
(
02:52
-0700)
committer
Anatolij Gustschin
<agust@denx.de>
Sat, 27 Jun 2020 22:28:59 +0000
(
00:28
+0200)
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
drivers/video/vidconsole-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/video/vidconsole-uclass.c
b/drivers/video/vidconsole-uclass.c
index
d30e6db
..
9b76154
100644
(file)
--- 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);
}