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
|
@ -105,8 +105,9 @@ static void quickscreen_fix_viewports(struct gui_quickscreen *qs,
|
||||||
vp_icons[screen].height =
|
vp_icons[screen].height =
|
||||||
vps[screen][QUICKSCREEN_BOTTOM].y - vp_icons[screen].y;
|
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;
|
int width = (parent->width - CENTER_ICONAREA_WIDTH)/2;
|
||||||
vps[screen][QUICKSCREEN_LEFT].width = width;
|
vps[screen][QUICKSCREEN_LEFT].width = width;
|
||||||
vps[screen][QUICKSCREEN_RIGHT].width = width;
|
vps[screen][QUICKSCREEN_RIGHT].width = width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue