summaryrefslogtreecommitdiffstats
path: root/apps/gui/pitchscreen.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-15 21:13:58 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-15 21:13:58 +0000
commit9c45cf2f468ec80d6dcb5c695f72061e7e34d7d7 (patch)
tree5a0120e2c0d04f25d6f68bcb446d5d6a7c76f363 /apps/gui/pitchscreen.c
parentca10566561876b4b7919a2f506c2fe49359742f3 (diff)
downloadrockbox-9c45cf2f468ec80d6dcb5c695f72061e7e34d7d7.tar.gz
rockbox-9c45cf2f468ec80d6dcb5c695f72061e7e34d7d7.tar.bz2
rockbox-9c45cf2f468ec80d6dcb5c695f72061e7e34d7d7.zip
Pitchscreen: Don't clear the whole display, but only the parent viewport.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23196 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/pitchscreen.c')
-rw-r--r--apps/gui/pitchscreen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c
index 8f542e8f27..7de65bc36e 100644
--- a/apps/gui/pitchscreen.c
+++ b/apps/gui/pitchscreen.c
@@ -623,10 +623,11 @@ int gui_syncpitchscreen_run(void)
/* initialize pitchscreen vps */
FOR_NB_SCREENS(i)
{
- screens[i].clear_display();
viewport_set_defaults(&parent[i], i);
max_lines[i] = viewport_get_nb_lines(&parent[i]);
pitchscreen_fix_viewports(&parent[i], pitch_viewports[i]);
+ screens[i].set_viewport(&parent[i]);
+ screens[i].clear_viewport();
/* also, draw the icons now, it's only needed once */
pitchscreen_draw_icons(&screens[i], &parent[i]);