Commit dc14c1e0904a1f02eac7f45ce26e2c6584fbfbe1

Authored by Ye Li
1 parent ff58ce2115

MLK-23964-2 video: vidconsole: avoid multiple lines overwrite logo

Fix the bug that multiple lines wraps to overwrite logo bmp

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 66410570927ba44e9fdfd6874ee55e8b33c2d14d)

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/video/vidconsole-uclass.c
... ... @@ -620,6 +620,7 @@
620 620 col *= priv->x_charsize;
621 621 row *= priv->y_charsize;
622 622 priv->xcur_frac = VID_TO_POS(min_t(short, col, vid_priv->xsize - 1));
  623 + priv->xstart_frac = priv->xcur_frac;
623 624 priv->ycur = min_t(short, row, vid_priv->ysize - 1);
624 625 }
625 626