mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
[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]];
|
buftext = &buffer[sidx[i]];
|
||||||
display->put_line(x + offw + offx, ny, linedes, "$t", buftext);
|
display->put_line(x + offw + offx, ny, linedes, "$t", buftext);
|
||||||
vp->width += COLUMN_ENDLEN + 1;
|
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);
|
draw_selector(display, linedes, selected_flag, i, separator, x, ny, nw, height);
|
||||||
}
|
}
|
||||||
x = nx;
|
x = nx;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue