mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
162a8f25b5
commit
db00c568c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue