From 13e49f5f91cbe2b8ddb1567afb24d385c68be899 Mon Sep 17 00:00:00 2001 From: Martin Scarratt Date: Wed, 19 Jul 2006 15:30:40 +0000 Subject: Completed implementation of display GUI code for recording and peakmeter git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10249 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/peakmeter.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'apps/recorder/peakmeter.c') 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) { int barstart, barend; int icon, ixpos; + int i; switch (trig_status) { case TRIG_READY: @@ -1160,8 +1161,11 @@ void peak_meter_draw_trig(int xpos, int ypos) scrollbar(xpos + ICON_PLAY_STATE_WIDTH + 1, ypos + 1, TRIGBAR_WIDTH, TRIG_HEIGHT - 2, TRIGBAR_WIDTH, barstart, barend, HORIZONTAL); - lcd_mono_bitmap(bitmap_icons_7x8[icon], ixpos, ypos, - ICON_PLAY_STATE_WIDTH, STATUSBAR_HEIGHT); + FOR_NB_SCREENS(i) + { + screens[i].mono_bitmap(bitmap_icons_7x8[icon], ixpos, ypos, + ICON_PLAY_STATE_WIDTH, STATUSBAR_HEIGHT); + } } #endif @@ -1226,7 +1230,7 @@ bool peak_meter_histogram(void) unsigned int max = 0; int y = 0; int x = 0; - lcd_clear_display(); + screens[0].clear_display(); for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { max = MAX(max, peeks_per_redraw[i]); @@ -1234,7 +1238,7 @@ bool peak_meter_histogram(void) for (i = 0; i < PEEKS_PER_DRAW_SIZE; i++) { x = peeks_per_redraw[i] * (LCD_WIDTH - 1)/ max; - lcd_hline(0, x, y + i); + screens[0].hline(0, x, y + i); } y = PEEKS_PER_DRAW_SIZE + 1; @@ -1246,9 +1250,9 @@ bool peak_meter_histogram(void) for (i = 0; i < TICKS_PER_DRAW_SIZE; i++) { x = ticks_per_redraw[i] * (LCD_WIDTH - 1)/ max; - lcd_hline(0, x, y + i); + screens[0].hline(0, x, y + i); } - lcd_update(); + screens[0].update(); btn = button_get(true); if (btn == BUTTON_PLAY) { -- cgit v1.2.3