forked from len0rd/rockbox
Renamed has_new_lcd() to is_new_player(), and got rid of the alias
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5459 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
011835dec3
commit
d4e53976d9
7 changed files with 10 additions and 11 deletions
|
|
@ -461,7 +461,7 @@ static char* get_tag(struct mp3entry* cid3,
|
|||
#endif
|
||||
case 'f': /* full-line progress bar */
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
if(has_new_lcd()) {
|
||||
if(is_new_player()) {
|
||||
*flags |= WPS_REFRESH_PLAYER_PROGRESS;
|
||||
*flags |= WPS_REFRESH_DYNAMIC;
|
||||
full_line_progressbar=1;
|
||||
|
|
|
|||
|
|
@ -496,7 +496,7 @@ void lcd_init (void)
|
|||
|
||||
(void)data_vector;
|
||||
|
||||
new_lcd = has_new_lcd();
|
||||
new_lcd = is_new_player();
|
||||
memset(extended_chars_mapped, NO_CHAR, sizeof(extended_chars_mapped));
|
||||
memset(extended_pattern_content, NO_CHAR,sizeof(extended_pattern_content));
|
||||
memset(extended_pattern_usage, 0, sizeof(extended_pattern_usage));
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ void ide_power_enable(bool on)
|
|||
if(on)
|
||||
{
|
||||
#ifdef ATA_POWER_PLAYERSTYLE
|
||||
if (has_ata_power_control())
|
||||
if (is_new_player())
|
||||
{
|
||||
or_b(0x10, &PBDRL);
|
||||
touched = true;
|
||||
|
|
@ -134,7 +134,7 @@ void ide_power_enable(bool on)
|
|||
if(!on)
|
||||
{
|
||||
#ifdef ATA_POWER_PLAYERSTYLE
|
||||
if (has_ata_power_control())
|
||||
if (is_new_player())
|
||||
{
|
||||
and_b(~0x10, &PBDRL);
|
||||
touched = true;
|
||||
|
|
@ -166,7 +166,7 @@ bool ide_powered(void)
|
|||
{
|
||||
#if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF)
|
||||
#ifdef ATA_POWER_PLAYERSTYLE
|
||||
if (has_ata_power_control())
|
||||
if (is_new_player())
|
||||
{
|
||||
if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */
|
||||
return false; /* would be floating low, disk off */
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ int read_rom_version(void);
|
|||
int read_hw_mask(void);
|
||||
|
||||
#ifdef ARCHOS_PLAYER
|
||||
bool has_new_lcd(void);
|
||||
bool has_ata_power_control(void) __attribute__ ((alias ("has_new_lcd")));
|
||||
bool is_new_player(void);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ int read_hw_mask(void)
|
|||
}
|
||||
|
||||
#ifdef ARCHOS_PLAYER
|
||||
bool has_new_lcd(void)
|
||||
bool is_new_player(void)
|
||||
{
|
||||
return read_rom_version() > 451;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -541,7 +541,7 @@ unsigned char (*font_player)[256][5]=&font_new_player;
|
|||
|
||||
void font_init()
|
||||
{
|
||||
if (has_new_lcd())
|
||||
if (is_new_player())
|
||||
font_player = &font_new_player;
|
||||
else
|
||||
font_player = &font_old_player;
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ int rtc_write(int address, int value)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool has_new_lcd(void)
|
||||
bool is_new_player(void)
|
||||
{
|
||||
return having_new_lcd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue