re-add s upport for themes without an SMDH

Also change theme dump random color algo
This commit is contained in:
Alex Taber
2020-12-24 16:58:06 -05:00
parent bc2f4ec581
commit c9e1420a00
4 changed files with 9 additions and 12 deletions

View File

@@ -719,24 +719,19 @@ void draw_interface(Entry_List_s* list, Instructions_s instructions)
C2D_DrawSpriteTinted(&sprite_installed, &tint);
}
// no icons not allowed anymore
/*
if(!current_entry->placeholder_color)
{
*/
C2D_Image * image = NULL;
if(list->entries_count > list->entries_loaded*ICONS_OFFSET_AMOUNT)
image = list->icons[ICONS_VISIBLE*list->entries_loaded + (i - list->scroll)];
else
image = list->icons[i];
C2D_DrawImageAt(*image, horizontal_offset, vertical_offset, 0.5f, NULL, 1.0f, 1.0f);
/*
}
else
{
C2D_DrawRectSolid(horizontal_offset, vertical_offset, 0.5f, list->entry_size, list->entry_size, current_entry->placeholder_color);
}
*/
}
char entries_count_str[0x20] = {0};