summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-24 12:57:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-24 12:57:15 +0000
commit6d83a9efda2e6b6ce5b5c84168df79403db277cc (patch)
treeb16597292c35d2ea87a444566225f72eb9f4d383 /apps
parent25af90ace217f5faed4b146ec864e0867999732c (diff)
downloadrockbox-6d83a9efda2e6b6ce5b5c84168df79403db277cc.tar.gz
rockbox-6d83a9efda2e6b6ce5b5c84168df79403db277cc.zip
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')
-rw-r--r--apps/recorder/recording.c24
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)
176 176
177 lcd_setfont(FONT_SYSFIXED); 177 lcd_setfont(FONT_SYSFIXED);
178 lcd_getstringsize("M", &w, &h); 178 lcd_getstringsize("M", &w, &h);
179 lcd_setmargins(w, 8); 179 lcd_setmargins(global_settings.invert_cursor ? 0 : w, 8);
180 180
181 while(!done) 181 while(!done)
182 { 182 {
@@ -353,6 +353,8 @@ bool recording_screen(void)
353 update_countdown--; 353 update_countdown--;
354 if(update_countdown == 0 || seconds > last_seconds) 354 if(update_countdown == 0 || seconds > last_seconds)
355 { 355 {
356 int pos = 0;
357
356 update_countdown = 5; 358 update_countdown = 5;
357 last_seconds = seconds; 359 last_seconds = seconds;
358 360
@@ -378,7 +380,10 @@ bool recording_screen(void)
378 fmt_gain(SOUND_MIC_GAIN, 380 fmt_gain(SOUND_MIC_GAIN,
379 global_settings.rec_mic_gain, 381 global_settings.rec_mic_gain,
380 buf2, sizeof(buf2))); 382 buf2, sizeof(buf2)));
381 lcd_puts(0, 3, buf); 383 if (global_settings.invert_cursor && (pos++ == cursor))
384 lcd_puts_style(0, 3, buf, STYLE_INVERT);
385 else
386 lcd_puts(0, 3, buf);
382 } 387 }
383 else 388 else
384 { 389 {
@@ -390,19 +395,28 @@ bool recording_screen(void)
390 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN), 395 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN),
391 fmt_gain(SOUND_LEFT_GAIN, gain, 396 fmt_gain(SOUND_LEFT_GAIN, gain,
392 buf2, sizeof(buf2))); 397 buf2, sizeof(buf2)));
393 lcd_puts(0, 3, buf); 398 if (global_settings.invert_cursor && (pos++ == cursor))
399 lcd_puts_style(0, 3, buf, STYLE_INVERT);
400 else
401 lcd_puts(0, 3, buf);
394 402
395 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_LEFT), 403 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_LEFT),
396 fmt_gain(SOUND_LEFT_GAIN, 404 fmt_gain(SOUND_LEFT_GAIN,
397 global_settings.rec_left_gain, 405 global_settings.rec_left_gain,
398 buf2, sizeof(buf2))); 406 buf2, sizeof(buf2)));
399 lcd_puts(0, 4, buf); 407 if (global_settings.invert_cursor && (pos++ == cursor))
408 lcd_puts_style(0, 4, buf, STYLE_INVERT);
409 else
410 lcd_puts(0, 4, buf);
400 411
401 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_RIGHT), 412 snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_RIGHT),
402 fmt_gain(SOUND_RIGHT_GAIN, 413 fmt_gain(SOUND_RIGHT_GAIN,
403 global_settings.rec_right_gain, 414 global_settings.rec_right_gain,
404 buf2, sizeof(buf2))); 415 buf2, sizeof(buf2)));
405 lcd_puts(0, 5, buf); 416 if (global_settings.invert_cursor && (pos++ == cursor))
417 lcd_puts_style(0, 5, buf, STYLE_INVERT);
418 else
419 lcd_puts(0, 5, buf);
406 } 420 }
407 } 421 }
408 422