Ver código fonte

'fix' strange rounding glitch

Thomas Buck 5 meses atrás
pai
commit
f11237c4ff
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/state_volcano_run.c

+ 1
- 1
src/state_volcano_run.c Ver arquivo

@@ -150,7 +150,7 @@ static void draw(struct menu_state *menu) {
150 150
         pos += snprintf(menu->buff + pos, MENU_MAX_LEN - pos,
151 151
                         "%s\n", wf_step_str(state.step));
152 152
         pos += snprintf(menu->buff + pos, MENU_MAX_LEN - pos,
153
-                        "%.0f -> %.0f -> %.0f",
153
+                        "%.0f -> %.1f -> %.0f",
154 154
                         state.start_val / 1000.0f,
155 155
                         state.curr_val / 1000.0f,
156 156
                         state.step->val / 1000.0f);

Carregando…
Cancelar
Salvar