1
0
Fork 0
forked from len0rd/rockbox

A bit of code police, no functional changes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-08-03 22:47:33 +00:00
parent d86255b4a9
commit ff5533f3ac

View file

@ -164,8 +164,8 @@ bool in_radio_screen(void)
return in_screen; return in_screen;
} }
/* TODO: Move some more of the control functionality to an HAL and clean up the /* TODO: Move some more of the control functionality to firmware
mess */ and clean up the mess */
/* secret flag for starting paused - prevents unmute */ /* secret flag for starting paused - prevents unmute */
#define FMRADIO_START_PAUSED 0x8000 #define FMRADIO_START_PAUSED 0x8000
@ -186,8 +186,7 @@ void radio_start(void)
if(radio_status == FMRADIO_OFF) if(radio_status == FMRADIO_OFF)
tuner_power(true); tuner_power(true);
curr_freq = global_status.last_frequency curr_freq = global_status.last_frequency * fmr->freq_step + fmr->freq_min;
* fmr->freq_step + fmr->freq_min;
tuner_set(RADIO_SLEEP, 0); /* wake up the tuner */ tuner_set(RADIO_SLEEP, 0); /* wake up the tuner */
@ -860,8 +859,10 @@ int radio_screen(void)
{ {
screens[i].set_viewport(&vp[i]); screens[i].set_viewport(&vp[i]);
peak_meter_screen(&screens[i],0, peak_meter_screen(&screens[i],0,
STATUSBAR_HEIGHT + fh*(top_of_screen + 4), fh); STATUSBAR_HEIGHT + fh*(top_of_screen + 4),
screens[i].update_rect(0, STATUSBAR_HEIGHT + fh*(top_of_screen + 4), fh);
screens[i].update_rect(0,
STATUSBAR_HEIGHT + fh*(top_of_screen + 4),
screens[i].getwidth(), fh); screens[i].getwidth(), fh);
screens[i].set_viewport(NULL); screens[i].set_viewport(NULL);
} }
@ -911,7 +912,8 @@ int radio_screen(void)
screens[i].puts_scroll(0, top_of_screen, buf); screens[i].puts_scroll(0, top_of_screen, buf);
freq = curr_freq / 10000; freq = curr_freq / 10000;
snprintf(buf, 128, str(LANG_FM_STATION), freq / 100, freq % 100); snprintf(buf, 128, str(LANG_FM_STATION),
freq / 100, freq % 100);
FOR_NB_SCREENS(i) FOR_NB_SCREENS(i)
screens[i].puts_scroll(0, top_of_screen + 1, buf); screens[i].puts_scroll(0, top_of_screen + 1, buf);
@ -1610,7 +1612,8 @@ MAKE_MENU(radio_settings_menu, ID2P(LANG_FM_MENU), NULL,
/* main menu of the radio screen */ /* main menu of the radio screen */
static bool radio_menu(void) static bool radio_menu(void)
{ {
return do_menu(&radio_settings_menu, NULL, NULL, false) == MENU_ATTACHED_USB; return do_menu(&radio_settings_menu, NULL, NULL, false) ==
MENU_ATTACHED_USB;
} }
#endif #endif