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:
William Wilgus 2021-10-02 03:30:39 -04:00 committed by William Wilgus
parent 3a89fdee96
commit a62fdf4751

View file

@ -511,9 +511,10 @@ static bool LCDFN(puts_scroll_worker)(int x, int y, const unsigned char *string,
x = x * (linebased ? cwidth : 1); x = x * (linebased ? cwidth : 1);
width = vp->width - x; width = vp->width - x;
if (y >= vp->height || (height + y) > (vp->height)) if (y >= vp->height)
return false; return false;
if ((height + y) > (vp->height))
height = vp->height - y;
s = find_scrolling_line(x, y); s = find_scrolling_line(x, y);
restart = !s; restart = !s;