From 03804d90b6d98ba2b9a891433a07af569ca04abf Mon Sep 17 00:00:00 2001 From: PS Date: Thu, 8 Apr 2021 16:46:46 -1000 Subject: [PATCH] Forcing all phrase hue maps to lowercase --- src/app/ss_blumen_lumen/phrase_hue_map.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/ss_blumen_lumen/phrase_hue_map.h b/src/app/ss_blumen_lumen/phrase_hue_map.h index 29390be..1bd5d2d 100644 --- a/src/app/ss_blumen_lumen/phrase_hue_map.h +++ b/src/app/ss_blumen_lumen/phrase_hue_map.h @@ -101,6 +101,15 @@ PhraseHueMap_GenFromCSV(gscsv_sheet Sheet, gs_memory_arena* Arena) } Result.Phrases[Index] = PushStringF(Arena, Phrase.Length, "%S", Phrase).ConstString; + for (u64 i = 0; i < Result.Phrases[Index].Length; i++) + { + char C = Result.Phrases[Index].Str[i]; + if (IsAlpha(C)) + { + Result.Phrases[Index].Str[i] = ToLower(C); + } + } + Result.PhraseHashes[Index] = PhraseHash; Result.Hue0[Index] = CreateHueFromString(Hue0Str); Result.Hue1[Index] = CreateHueFromString(Hue1Str);