|
|
@ -8,12 +8,13 @@ |
|
|
|
|
|
|
|
void my_print_nbr(sfml_t *sfml, int nb, uint32_t *option, int pos[2]) |
|
|
|
{ |
|
|
|
uint8_t buffer; |
|
|
|
char buffer[2]; |
|
|
|
|
|
|
|
if (!nb) |
|
|
|
return; |
|
|
|
my_print_nbr(sfml, nb / 10, option, pos); |
|
|
|
buffer = '0' + nb % 10; |
|
|
|
my_print(sfml, pos, (const char*)&buffer, option); |
|
|
|
buffer[0] = '0' + nb % 10; |
|
|
|
buffer[1] = '\0'; |
|
|
|
my_print(sfml, pos, buffer, option); |
|
|
|
pos[0] += ASCII_DEFAULT_WIDTH << option[0]; |
|
|
|
} |