diff options
Diffstat (limited to 'apps/recorder/peakmeter.c')
-rw-r--r-- | apps/recorder/peakmeter.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 2b85513cf3..cb5464f9af 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c | |||
@@ -1119,6 +1119,7 @@ void peak_meter_draw_trig(int xpos, int ypos) | |||
1119 | { | 1119 | { |
1120 | int barstart, barend; | 1120 | int barstart, barend; |
1121 | int icon, ixpos; | 1121 | int icon, ixpos; |
1122 | int i; | ||
1122 | switch (trig_status) { | 1123 | switch (trig_status) { |
1123 | 1124 | ||
1124 | case TRIG_READY: | 1125 | case TRIG_READY: |
@@ -1160,8 +1161,11 @@ void peak_meter_draw_trig(int xpos, int ypos) | |||
1160 | scrollbar(xpos + ICON_PLAY_STATE_WIDTH + 1, ypos + 1, | 1161 | scrollbar(xpos + ICON_PLAY_STATE_WIDTH + 1, ypos + 1, |
1161 | TRIGBAR_WIDTH, TRIG_HEIGHT - 2, | 1162 | TRIGBAR_WIDTH, TRIG_HEIGHT - 2, |
1162 | TRIGBAR_WIDTH, barstart, barend, HORIZONTAL); | 1163 | TRIGBAR_WIDTH, barstart, barend, HORIZONTAL); |
1163 | lcd_mono_bitmap(bitmap_icons_7x8[icon], ixpos, ypos, | 1164 | FOR_NB_SCREENS(i) |
1164 | ICON_PLAY_STATE_WIDTH, STATUSBAR_HEIGHT); | 1165 | { |
1166 | screens[i].mono_bitmap(bitmap_icons_7x8[icon], ixpos, ypos, | ||
1167 | ICON_PLAY_STATE_WIDTH, STATUSBAR_HEIGHT); | ||
1168 | } | ||
1165 | } | 1169 | } |
1166 | #endif | 1170 | #endif |
1167 | 1171 | ||
@@ -1226,7 +1230,7 @@ bool peak_meter_histogram(void) | |||
1226 | unsigned int max = 0; | 1230 | unsigned int max = 0; |
1227 | int y = 0; | 1231 | int y = 0; |
1228 | int x = 0; | 1232 | int x = 0; |
1229 | lcd_clear_display(); | 1233 | screens[0].clear_display(); |
1230 | 1234 | ||
1231 | for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { | 1235 | for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { |
1232 | max = MAX(max, peeks_per_redraw[i]); | 1236 | max = MAX(max, peeks_per_redraw[i]); |
@@ -1234,7 +1238,7 @@ bool peak_meter_histogram(void) | |||
1234 | 1238 | ||
1235 | for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { | 1239 | for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { |
1236 | x = peeks_per_redraw[i] * (LCD_WIDTH - 1)/ max; | 1240 | x = peeks_per_redraw[i] * (LCD_WIDTH - 1)/ max; |
1237 | lcd_hline(0, x, y + i); | 1241 | screens[0].hline(0, x, y + i); |
1238 | } | 1242 | } |
1239 | 1243 | ||
1240 | y = PEEKS_PER_DRAW_SIZE + 1; | 1244 | y = PEEKS_PER_DRAW_SIZE + 1; |
@@ -1246,9 +1250,9 @@ bool peak_meter_histogram(void) | |||
1246 | 1250 | ||
1247 | for (i = 0; i < TICKS_PER_DRAW_SIZE; i++) { | 1251 | for (i = 0; i < TICKS_PER_DRAW_SIZE; i++) { |
1248 | x = ticks_per_redraw[i] * (LCD_WIDTH - 1)/ max; | 1252 | x = ticks_per_redraw[i] * (LCD_WIDTH - 1)/ max; |
1249 | lcd_hline(0, x, y + i); | 1253 | screens[0].hline(0, x, y + i); |
1250 | } | 1254 | } |
1251 | lcd_update(); | 1255 | screens[0].update(); |
1252 | 1256 | ||
1253 | btn = button_get(true); | 1257 | btn = button_get(true); |
1254 | if (btn == BUTTON_PLAY) { | 1258 | if (btn == BUTTON_PLAY) { |