diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-11-21 19:50:57 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-11-21 19:50:57 -0500 |
commit | d1a4903afb949a2a9fc7197ceedb29a3312d6965 (patch) | |
tree | e515332cb6595873630de600e61f8f3ed5ca726f | |
parent | 00906647b4769acbd7ae62a284b77007bdfef4b4 (diff) | |
download | rockbox-d1a4903afb.tar.gz rockbox-d1a4903afb.zip |
[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
-rw-r--r-- | apps/plugins/lib/printcell_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/lib/printcell_helper.c b/apps/plugins/lib/printcell_helper.c index 48b8b2c9d2..43cbabef06 100644 --- a/apps/plugins/lib/printcell_helper.c +++ b/apps/plugins/lib/printcell_helper.c @@ -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; |