From 8182a9f93c3bdd3c2a061347b9c06f9605a12f10 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:38:03 -0400 Subject: [PATCH] Fix hex codes being set inproperly (#165) --- src/pc/djui/djui_panel_player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/djui/djui_panel_player.c b/src/pc/djui/djui_panel_player.c index 0d279b1f..b0c17fa1 100644 --- a/src/pc/djui/djui_panel_player.c +++ b/src/pc/djui/djui_panel_player.c @@ -72,8 +72,8 @@ static void djui_panel_player_edit_palette_hex_code_changed(struct DjuiBase* cal } for (int i = 0; i < 3; i++) { - configPlayerPalette.parts[sCurrentPlayerPart][i] = (char_to_hex_digit(input->buffer[2*i]) << 4) | - char_to_hex_digit(input->buffer[2*i] + 1); + configPlayerPalette.parts[sCurrentPlayerPart][i] = (char_to_hex_digit(input->buffer[2 * i]) << 4) | + char_to_hex_digit(input->buffer[2 * i + 1]); } djui_panel_player_edit_palette_update_sliders();