From 44a9ee0f1539794804433039df6da40061134aad Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 23 Jan 2020 15:47:44 -0500 Subject: [PATCH] Well-defined initial identicon color. --- platform-independent/c/core/src/mpw-algorithm.c | 2 +- platform-independent/c/core/src/mpw-types.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform-independent/c/core/src/mpw-algorithm.c b/platform-independent/c/core/src/mpw-algorithm.c index b6b8ac53..d9db705f 100644 --- a/platform-independent/c/core/src/mpw-algorithm.c +++ b/platform-independent/c/core/src/mpw-algorithm.c @@ -210,7 +210,7 @@ MPIdenticon mpw_identicon(const char *fullName, const char *masterPassword) { .body = "", .rightArm = "", .accessory = "", - .color=0, + .color = 0, }; MPIdenticon identicon = { diff --git a/platform-independent/c/core/src/mpw-types.h b/platform-independent/c/core/src/mpw-types.h index a6b2a32b..ed67f593 100644 --- a/platform-independent/c/core/src/mpw-types.h +++ b/platform-independent/c/core/src/mpw-types.h @@ -107,7 +107,8 @@ typedef mpw_enum ( uint32_t, MPCounterValue ) { /** These colours are compatible with the original ANSI SGR. */ typedef mpw_enum( uint8_t, MPIdenticonColor ) { - MPIdenticonColorRed = 1, + MPIdenticonColorBlack, + MPIdenticonColorRed, MPIdenticonColorGreen, MPIdenticonColorYellow, MPIdenticonColorBlue,