forked from len0rd/rockbox
Fix FS #9022: space reserved for the icons in the quickscreen used the incorrect constant
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17616 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
64e7705e68
commit
f2d7270b70
1 changed files with 3 additions and 2 deletions
|
@ -104,9 +104,10 @@ static void quickscreen_fix_viewports(struct gui_quickscreen *qs,
|
|||
vp_icons[screen].y = vps[screen][QUICKSCREEN_LEFT].y + (char_height/2);
|
||||
vp_icons[screen].height =
|
||||
vps[screen][QUICKSCREEN_BOTTOM].y - vp_icons[screen].y;
|
||||
|
||||
if (left_width + right_width > display->width - CENTER_MARGIN) /* scrolling needed */
|
||||
|
||||
if (left_width + right_width > display->width - CENTER_ICONAREA_WIDTH)
|
||||
{
|
||||
/* scrolling needed */
|
||||
int width = (parent->width - CENTER_ICONAREA_WIDTH)/2;
|
||||
vps[screen][QUICKSCREEN_LEFT].width = width;
|
||||
vps[screen][QUICKSCREEN_RIGHT].width = width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue