From 6d83a9efda2e6b6ce5b5c84168df79403db277cc Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 24 Apr 2003 12:57:15 +0000 Subject: Added inverted cursor in recording screen (Magnus Öman) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3600 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'apps') 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); } } -- cgit v1.2.3