summaryrefslogtreecommitdiff
path: root/apps/gui/quickscreen.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-02-05 00:14:52 +0000
committerThomas Martitz <kugel@rockbox.org>2009-02-05 00:14:52 +0000
commitdd137301121b4e45d3b2e28ba756c22f3212cbfa (patch)
tree4cf58a2b49c01dc5a8cd84608edcfed4823e6fdb /apps/gui/quickscreen.c
parente8da4477297ffb12603680f09fa9b2cd30d0b7b5 (diff)
Minor quickscreen and pitchscreen fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/quickscreen.c')
-rw-r--r--apps/gui/quickscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index c554195d27..b39105dc72 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -70,7 +70,7 @@ static void quickscreen_fix_viewports(struct gui_quickscreen *qs,
/* center the icons VP first */
vp_icons[screen] = *parent;
vp_icons[screen].width = CENTER_ICONAREA_WIDTH; /* abosulte smallest allowed */
- vp_icons[screen].x = (parent->width-parent->x-CENTER_ICONAREA_WIDTH)/2;
+ vp_icons[screen].x = parent->x + (parent->width / 2 - CENTER_ICONAREA_WIDTH / 2);
vps[screen][QUICKSCREEN_BOTTOM] = *parent;
if (nb_lines <= MIN_LINES) /* make the bottom item use 1 line */