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

@@ -393,7 +393,11 @@ Result dump_theme(void)
free(output_dir);
u16 color = rand() % 65535;
u8 r = rand() % 255;
u8 g = rand() % 255;
u8 b = rand() % 255;
u16 color = ((r & 0b11111000) << 8) | ((g & 0b11111100) << 3) | (b >> 3);
for (int i = 0x2040; i < 0x36c0; i += 2)
{