From 55d423480dd2e9f3f4e38cebb7da67e8e9444c20 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 23 May 2008 21:20:05 +0000 Subject: [PATCH] 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 --- apps/gui/quickscreen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 09592093e..261b1ca8a 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; -- 2.11.4.GIT