diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-23 21:20:05 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-23 21:20:05 +0000 |
commit | f2d7270b7002d72f02d4d449e7fcbc62c11c9918 (patch) | |
tree | 3ffef21615c341e01472f579c525dfed1d9bba83 /apps/gui/quickscreen.c | |
parent | 64e7705e68cc5d67c0af1a7a375fa03a65c30ad0 (diff) |
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
Diffstat (limited to 'apps/gui/quickscreen.c')
-rw-r--r-- | apps/gui/quickscreen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 09592093e7..261b1ca8ac 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c @@ -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; |