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 0cbcdf508b
commit 8182a9f93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ 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);
char_to_hex_digit(input->buffer[2 * i + 1]);
}
djui_panel_player_edit_palette_update_sliders();