forked from len0rd/rockbox
Added inverted cursor in recording screen (Magnus Öman)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3600 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
25af90ace2
commit
6d83a9efda
1 changed files with 19 additions and 5 deletions
|
@ -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,6 +380,9 @@ bool recording_screen(void)
|
|||
fmt_gain(SOUND_MIC_GAIN,
|
||||
global_settings.rec_mic_gain,
|
||||
buf2, sizeof(buf2)));
|
||||
if (global_settings.invert_cursor && (pos++ == cursor))
|
||||
lcd_puts_style(0, 3, buf, STYLE_INVERT);
|
||||
else
|
||||
lcd_puts(0, 3, buf);
|
||||
}
|
||||
else
|
||||
|
@ -390,18 +395,27 @@ bool recording_screen(void)
|
|||
snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN),
|
||||
fmt_gain(SOUND_LEFT_GAIN, gain,
|
||||
buf2, sizeof(buf2)));
|
||||
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)));
|
||||
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)));
|
||||
if (global_settings.invert_cursor && (pos++ == cursor))
|
||||
lcd_puts_style(0, 5, buf, STYLE_INVERT);
|
||||
else
|
||||
lcd_puts(0, 5, buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue