summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_detector.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:22 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:22 +0000
commitcf2ce17d0998e3cdcb055b4ffceafe8c94cd66a0 (patch)
tree034872a7fd38ec67564bc819c35414c48588f1ac /apps/plugins/pitch_detector.c
parent0f063b7d725e2c418aa0fb6f06193c79cc9ebea6 (diff)
downloadrockbox-cf2ce17d0998e3cdcb055b4ffceafe8c94cd66a0.tar.gz
rockbox-cf2ce17d0998e3cdcb055b4ffceafe8c94cd66a0.zip
pitch_detector: use lcd_putsxyf(), not lcd_putsf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27922 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r--apps/plugins/pitch_detector.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index afb38ce976..22e8f75a7b 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -634,11 +634,11 @@ static void draw_bar(fixed wrong_by_cents)
634#if LCD_DEPTH > 1 634#if LCD_DEPTH > 1
635 rb->lcd_set_foreground(front_color); 635 rb->lcd_set_foreground(front_color);
636#endif 636#endif
637 rb->lcd_putsf(lbl_x_minus_50 ,bar_grad_y, "%d", -50); 637 rb->lcd_putsxyf(lbl_x_minus_50 ,bar_grad_y, "%d", -50);
638 rb->lcd_putsf(lbl_x_minus_20 ,bar_grad_y, "%d", -20); 638 rb->lcd_putsxyf(lbl_x_minus_20 ,bar_grad_y, "%d", -20);
639 rb->lcd_putsf(lbl_x_0 ,bar_grad_y, "%d", 0); 639 rb->lcd_putsxyf(lbl_x_0 ,bar_grad_y, "%d", 0);
640 rb->lcd_putsf(lbl_x_20 ,bar_grad_y, "%d", 20); 640 rb->lcd_putsxyf(lbl_x_20 ,bar_grad_y, "%d", 20);
641 rb->lcd_putsf(lbl_x_50 ,bar_grad_y, "%d", 50); 641 rb->lcd_putsxyf(lbl_x_50 ,bar_grad_y, "%d", 50);
642 642
643#ifdef HAVE_LCD_COLOR 643#ifdef HAVE_LCD_COLOR
644 rb->lcd_set_foreground(LCD_RGBPACK(255,0,0)); /* Color screens */ 644 rb->lcd_set_foreground(LCD_RGBPACK(255,0,0)); /* Color screens */
@@ -715,7 +715,7 @@ static void display_frequency (fixed freq)
715#if LCD_DEPTH > 1 715#if LCD_DEPTH > 1
716 rb->lcd_set_foreground(front_color); 716 rb->lcd_set_foreground(front_color);
717#endif 717#endif
718 rb->lcd_putsf(0, HZ_Y, "%s : %d cents (%d.%02dHz)", 718 rb->lcd_putsxyf(0, HZ_Y, "%s : %d cents (%d.%02dHz)",
719 notes[note].name, fp_round(ldf) ,fixed2int(orig_freq), 719 notes[note].name, fp_round(ldf) ,fixed2int(orig_freq),
720 fp_round(fp_mul(fp_frac(orig_freq), 720 fp_round(fp_mul(fp_frac(orig_freq),
721 int2fixed(DISPLAY_HZ_PRECISION)))); 721 int2fixed(DISPLAY_HZ_PRECISION))));