Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. char aux_str[MAX_VALUES];
  2. sprintf(aux_str,"%d",*value);
  3. for(j=0;j<strlen(aux_str);j++){
  4. *tam_caracter_numero = letra_a_longitud(aux_str[j]);
  5. *ptr_valor = letra_a_vector(aux_str[j]);
  6. for(i=0;i<*tam_caracter_numero-1;i++){
  7. SDL_RenderDrawLine(
  8. renderer,
  9. (*ptr_valor)[i][0] * escalado + pos_x,
  10. -(*ptr_valor)[i][1] * escalado + pos_y,
  11. (*ptr_valor)[i+1][0] * escalado + pos_x,
  12. -(*ptr_valor)[i+1][1] * escalado + pos_y
  13. );
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement