1
0
Fork 0
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:
William Wilgus 2024-11-21 19:50:57 -05:00
parent 00906647b4
commit d1a4903afb

View file

@ -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;