diff options
author | Dan Everton <dan@iocaine.org> | 2006-03-25 13:35:31 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-03-25 13:35:31 +0000 |
commit | b66477adccfd08987e409182e15bb17e70283fae (patch) | |
tree | 46861838424afed2c2d7a6e41d429064d08f0e45 /apps/gui/gwps-common.c | |
parent | 2b71fa855d57c1dcd19411882d545002603a9dc3 (diff) | |
download | rockbox-b66477adccfd08987e409182e15bb17e70283fae.tar.gz rockbox-b66477adccfd08987e409182e15bb17e70283fae.zip |
Support the recording screen on the LCD remote. Also adds support for the peakmeter in the rremote WPS. Patch from Martin Scarratt (task 4818).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index b250674d47..37306fb0e3 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -1750,7 +1750,7 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset, | |||
1750 | #endif | 1750 | #endif |
1751 | update_line = true; | 1751 | update_line = true; |
1752 | } | 1752 | } |
1753 | if (flags & refresh_mode & WPS_REFRESH_PEAK_METER && display->height >= LCD_HEIGHT) { | 1753 | if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) { |
1754 | /* peak meter */ | 1754 | /* peak meter */ |
1755 | int peak_meter_y; | 1755 | int peak_meter_y; |
1756 | 1756 | ||
@@ -1761,12 +1761,12 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset, | |||
1761 | line so that it is only displayed if no status bar is | 1761 | line so that it is only displayed if no status bar is |
1762 | visible. If so we neither want do draw nor enable the | 1762 | visible. If so we neither want do draw nor enable the |
1763 | peak meter. */ | 1763 | peak meter. */ |
1764 | if (peak_meter_y + h <= LCD_HEIGHT) { | 1764 | if (peak_meter_y + h <= display->height) { |
1765 | /* found a line with a peak meter -> remember that we must | 1765 | /* found a line with a peak meter -> remember that we must |
1766 | enable it later */ | 1766 | enable it later */ |
1767 | enable_pm = true; | 1767 | enable_pm = true; |
1768 | peak_meter_draw(0, peak_meter_y, LCD_WIDTH, | 1768 | peak_meter_screen(gwps->display, 0, peak_meter_y, |
1769 | MIN(h, LCD_HEIGHT - peak_meter_y)); | 1769 | MIN(h, display->height - peak_meter_y)); |
1770 | } | 1770 | } |
1771 | } | 1771 | } |
1772 | #else | 1772 | #else |