Fix hex codes being set inproperly (#165)
This commit is contained in:
parent
0cbcdf508b
commit
8182a9f93c
|
@ -72,8 +72,8 @@ static void djui_panel_player_edit_palette_hex_code_changed(struct DjuiBase* cal
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
configPlayerPalette.parts[sCurrentPlayerPart][i] = (char_to_hex_digit(input->buffer[2*i]) << 4) |
|
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();
|
djui_panel_player_edit_palette_update_sliders();
|
||||||
|
|
Loading…
Reference in New Issue