summaryrefslogtreecommitdiffstats
path: root/apps/gui/pitchscreen.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/pitchscreen.c
parente8da4477297ffb12603680f09fa9b2cd30d0b7b5 (diff)
downloadrockbox-dd137301121b4e45d3b2e28ba756c22f3212cbfa.tar.gz
rockbox-dd137301121b4e45d3b2e28ba756c22f3212cbfa.tar.bz2
rockbox-dd137301121b4e45d3b2e28ba756c22f3212cbfa.zip
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/pitchscreen.c')
-rw-r--r--apps/gui/pitchscreen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c
index 746af0d7de..db50a5d866 100644
--- a/apps/gui/pitchscreen.c
+++ b/apps/gui/pitchscreen.c
@@ -68,7 +68,6 @@ static void pitchscreen_fix_viewports(struct viewport *parent,
pitch_viewports[i] = *parent;
pitch_viewports[i].height = height;
}
-
pitch_viewports[PITCH_TOP].y += ICON_BORDER;
pitch_viewports[PITCH_MID].x += ICON_BORDER;
@@ -98,6 +97,7 @@ static void pitchscreen_draw_icons (struct screen *display,
display->mono_bitmap(bitmap_icons_7x8[Icon_FastBackward],
2,
parent->height /2 - 4, 7, 8);
+ display->update_viewport();
}
static void pitchscreen_draw (struct screen *display, int max_lines,
@@ -153,7 +153,7 @@ static void pitchscreen_draw (struct screen *display, int max_lines,
snprintf((char *)buf, sizeof(buf), "%d.%d%%",
pitch / 10, pitch % 10 );
display->getstringsize(buf,&width_val,&h);
- display->putsxy((pitch_viewports[PITCH_MID].width / 2) - (w / 2),
+ display->putsxy((pitch_viewports[PITCH_MID].width / 2) - (width_val / 2),
(show_lang_pitch? h : h/2), buf);
/* What's wider? LANG_PITCH or the value?
@@ -272,7 +272,6 @@ int gui_syncpitchscreen_run(void)
/* also, draw the icons now, it's only needed once */
pitchscreen_draw_icons(&screens[i], &parent[i]);
- screens[i].update();
}
#if CONFIG_CODEC == SWCODEC
pcmbuf_set_low_latency(true);