scroll engine, allow clipped text in viewport
loosen the requirements on the scroll viewport allow clipped text Change-Id: I7099d423ccfbd7bae12e6ba43b8a6b4b864175b7
This commit is contained in:
parent
3a89fdee96
commit
a62fdf4751
1 changed files with 3 additions and 2 deletions
|
@ -511,9 +511,10 @@ static bool LCDFN(puts_scroll_worker)(int x, int y, const unsigned char *string,
|
|||
x = x * (linebased ? cwidth : 1);
|
||||
width = vp->width - x;
|
||||
|
||||
if (y >= vp->height || (height + y) > (vp->height))
|
||||
if (y >= vp->height)
|
||||
return false;
|
||||
|
||||
if ((height + y) > (vp->height))
|
||||
height = vp->height - y;
|
||||
s = find_scrolling_line(x, y);
|
||||
restart = !s;
|
||||
|
||||
|
|
Loading…
Reference in a new issue