summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/peakmeter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 541101cb80..fb2e465006 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -915,14 +915,14 @@ unsigned short peak_meter_scale_value(unsigned short val, int meterwidth)
915void peak_meter_screen(struct screen *display, int x, int y, int height) 915void peak_meter_screen(struct screen *display, int x, int y, int height)
916{ 916{
917 peak_meter_draw(display, &scales[display->screen_type], x, y, 917 peak_meter_draw(display, &scales[display->screen_type], x, y,
918 display->width - x, height); 918 display->getwidth() - x, height);
919} 919}
920/** 920/**
921 * Draws a peak meter in the specified size at the specified position. 921 * Draws a peak meter in the specified size at the specified position.
922 * @param int x - The x coordinate. 922 * @param int x - The x coordinate.
923 * Make sure that 0 <= x and x + width < display->width 923 * Make sure that 0 <= x and x + width < display->getwidth()
924 * @param int y - The y coordinate. 924 * @param int y - The y coordinate.
925 * Make sure that 0 <= y and y + height < display->height 925 * Make sure that 0 <= y and y + height < display->getheight()
926 * @param int width - The width of the peak meter. Note that for display 926 * @param int width - The width of the peak meter. Note that for display
927 * of clips a 3 pixel wide area is used -> 927 * of clips a 3 pixel wide area is used ->
928 * width > 3 928 * width > 3
@@ -1111,7 +1111,7 @@ static void peak_meter_draw(struct screen *display, struct meter_scales *scales,
1111 start_trigx = x+peak_meter_scale_value(trig_strt_threshold,meterwidth); 1111 start_trigx = x+peak_meter_scale_value(trig_strt_threshold,meterwidth);
1112 display->vline(start_trigx, ycenter - 2, ycenter); 1112 display->vline(start_trigx, ycenter - 2, ycenter);
1113 start_trigx ++; 1113 start_trigx ++;
1114 if (start_trigx < display->width ) display->drawpixel(start_trigx, ycenter - 1); 1114 if (start_trigx < display->getwidth() ) display->drawpixel(start_trigx, ycenter - 1);
1115 1115
1116 stop_trigx = x + peak_meter_scale_value(trig_stp_threshold,meterwidth); 1116 stop_trigx = x + peak_meter_scale_value(trig_stp_threshold,meterwidth);
1117 display->vline(stop_trigx, ycenter - 2, ycenter); 1117 display->vline(stop_trigx, ycenter - 2, ycenter);