diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-06-28 16:31:06 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-06-28 16:31:06 +0000 |
| commit | db00c568c92a1021f35d639ef9e896acf5a6af3b (patch) | |
| tree | 306765ac1c085763a13132a276ecb60e0eb387e3 | |
| parent | 162a8f25b5eef13a2953b8d8bc99dcd30bf07692 (diff) | |
| download | rockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.zip rockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.tar.gz rockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.tar.bz2 rockbox-db00c568c92a1021f35d639ef9e896acf5a6af3b.tar.xz | |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 9014e5c..a55ce06 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[], for(i = 0; i < nb_screens; i++) { peak_meter_screen(&screens[i], x, y[i], height); - screens[i].update_rect(x, y[i], screens[i].width - x, height); + screens[i].update_viewport_rect(x, y[i], + screens[i].width - x, height); } next_refresh += HZ / PEAK_METER_FPS; dopeek = true; |