forked from len0rd/rockbox
[BugFix] lib/printcell_helper.c vp buffer ovfl
vp->width may exceed the actual available screen area which prevents the sim from clipping properly ' Change-Id: I487761b3e656d4a066960fb8dc7477cceb30aa57
This commit is contained in:
parent
00906647b4
commit
d1a4903afb
1 changed files with 3 additions and 0 deletions
|
@ -201,6 +201,9 @@ static inline int printcells(struct screen *display, char* buffer,
|
|||
buftext = &buffer[sidx[i]];
|
||||
display->put_line(x + offw + offx, ny, linedes, "$t", buftext);
|
||||
vp->width += COLUMN_ENDLEN + 1;
|
||||
if (vp->width > vp_w)
|
||||
vp->width = vp_w;
|
||||
|
||||
draw_selector(display, linedes, selected_flag, i, separator, x, ny, nw, height);
|
||||
}
|
||||
x = nx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue