Fix hex codes being set inproperly (#165)

This commit is contained in:
Agent X 2022-08-25 20:38:03 -04:00 committed by GitHub
parent 8c6dd80abd
commit 02a5ea9f85
1 changed files with 2 additions and 2 deletions

View File

@ -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();