summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-06-28 16:31:06 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-06-28 16:31:06 +0000
commitdb00c568c92a1021f35d639ef9e896acf5a6af3b (patch)
tree306765ac1c085763a13132a276ecb60e0eb387e3
parent162a8f25b5eef13a2953b8d8bc99dcd30bf07692 (diff)
downloadrockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.tar.gz
rockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.zip
Fix broken peakmeters: peakmeter was using viewport drawing code but absolute screen coordinates for display updating. To Do: peakmeter must completely use viewport info for its updates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17838 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/peakmeter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 9014e5c351..a55ce063dc 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -1353,7 +1353,8 @@ int peak_meter_draw_get_btn(int action_context, int x, int y[],
1353 for(i = 0; i < nb_screens; i++) 1353 for(i = 0; i < nb_screens; i++)
1354 { 1354 {
1355 peak_meter_screen(&screens[i], x, y[i], height); 1355 peak_meter_screen(&screens[i], x, y[i], height);
1356 screens[i].update_rect(x, y[i], screens[i].width - x, height); 1356 screens[i].update_viewport_rect(x, y[i],
1357 screens[i].width - x, height);
1357 } 1358 }
1358 next_refresh += HZ / PEAK_METER_FPS; 1359 next_refresh += HZ / PEAK_METER_FPS;
1359 dopeek = true; 1360 dopeek = true;