diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-04-24 12:57:15 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-04-24 12:57:15 +0000 |
commit | 6d83a9efda2e6b6ce5b5c84168df79403db277cc (patch) | |
tree | b16597292c35d2ea87a444566225f72eb9f4d383 /apps/recorder | |
parent | 25af90ace217f5faed4b146ec864e0867999732c (diff) |
Added inverted cursor in recording screen (Magnus Öman)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3600 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index bff87735ff..e04ffe01cb 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -176,7 +176,7 @@ bool recording_screen(void) lcd_setfont(FONT_SYSFIXED); lcd_getstringsize("M", &w, &h); - lcd_setmargins(w, 8); + lcd_setmargins(global_settings.invert_cursor ? 0 : w, 8); while(!done) { @@ -353,6 +353,8 @@ bool recording_screen(void) update_countdown--; if(update_countdown == 0 || seconds > last_seconds) { + int pos = 0; + update_countdown = 5; last_seconds = seconds; @@ -378,7 +380,10 @@ bool recording_screen(void) fmt_gain(SOUND_MIC_GAIN, global_settings.rec_mic_gain, buf2, sizeof(buf2))); - lcd_puts(0, 3, buf); + if (global_settings.invert_cursor && (pos++ == cursor)) + lcd_puts_style(0, 3, buf, STYLE_INVERT); + else + lcd_puts(0, 3, buf); } else { @@ -390,19 +395,28 @@ bool recording_screen(void) snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN), fmt_gain(SOUND_LEFT_GAIN, gain, buf2, sizeof(buf2))); - lcd_puts(0, 3, buf); + if (global_settings.invert_cursor && (pos++ == cursor)) + lcd_puts_style(0, 3, buf, STYLE_INVERT); + else + lcd_puts(0, 3, buf); snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_LEFT), fmt_gain(SOUND_LEFT_GAIN, global_settings.rec_left_gain, buf2, sizeof(buf2))); - lcd_puts(0, 4, buf); + if (global_settings.invert_cursor && (pos++ == cursor)) + lcd_puts_style(0, 4, buf, STYLE_INVERT); + else + lcd_puts(0, 4, buf); snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_RIGHT), fmt_gain(SOUND_RIGHT_GAIN, global_settings.rec_right_gain, buf2, sizeof(buf2))); - lcd_puts(0, 5, buf); + if (global_settings.invert_cursor && (pos++ == cursor)) + lcd_puts_style(0, 5, buf, STYLE_INVERT); + else + lcd_puts(0, 5, buf); } } |