~proycon/wvkbd

e3081fb6e95c1cdd8a65b88cc88f7744a124ff98 — rdbo 8 months ago 8106d76
fixed malfunctioning theme at random
1 files changed, 1 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +1 -1
@@ 797,7 797,7 @@ set_kbd_colors(uint8_t *bgra, char *hex)
    // bg, fg, text, high, swipe
    int length = strlen(hex);
    if (length == 6 || length == 8) {
        char subhex[2];
        char subhex[3] = { 0 };
        memcpy(subhex, hex, 2);
        bgra[2] = (int)strtol(subhex, NULL, 16);
        memcpy(subhex, hex + 2, 2);