From 9592d76c2c1268f5c52e1cbb425f21f5f9b0ffea Mon Sep 17 00:00:00 2001 From: Alex Taber Date: Thu, 24 Dec 2020 14:52:08 -0500 Subject: [PATCH] Fix color generation --- source/themes.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/themes.c b/source/themes.c index 9110375..6e5dc71 100644 --- a/source/themes.c +++ b/source/themes.c @@ -396,7 +396,10 @@ Result dump_theme(void) u16 color = rand() % 65535; for (int i = 0x2040; i < 0x36c0; i += 2) - *(smdh_file + i) = color; + { + *(smdh_file + i) = (color & 0xFF00) >> 8; + *(smdh_file + i + 1) = color & 0x00FF; + } memcpy(path_output, path, 0x107); struacat(path_output, "/info.smdh");