summaryrefslogtreecommitdiff
path: root/apps/plugins/fft/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/fft/fft.c')
-rw-r--r--apps/plugins/fft/fft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c
index 2b9e541f3e..d6a8f016b3 100644
--- a/apps/plugins/fft/fft.c
+++ b/apps/plugins/fft/fft.c
@@ -1054,7 +1054,7 @@ void draw_spectrogram_vertical(void)
1054 lcd_(drawpixel)(graph_settings.spectrogram_pos, 1054 lcd_(drawpixel)(graph_settings.spectrogram_pos,
1055 scale_factor-1 - y); 1055 scale_factor-1 - y);
1056 1056
1057 if(++y >= LCD_HEIGHT) 1057 if(++y >= scale_factor)
1058 break; 1058 break;
1059 1059
1060 bins_acc -= ARRAYLEN_PLOT; 1060 bins_acc -= ARRAYLEN_PLOT;
@@ -1107,7 +1107,7 @@ void draw_spectrogram_horizontal(void)
1107 lcd_(set_foreground)(SPECTROGRAPH_PALETTE(index)); 1107 lcd_(set_foreground)(SPECTROGRAPH_PALETTE(index));
1108 lcd_(drawpixel)(x, graph_settings.spectrogram_pos); 1108 lcd_(drawpixel)(x, graph_settings.spectrogram_pos);
1109 1109
1110 if(++x >= LCD_WIDTH) 1110 if(++x >= scale_factor)
1111 break; 1111 break;
1112 1112
1113 bins_acc -= ARRAYLEN_PLOT; 1113 bins_acc -= ARRAYLEN_PLOT;