gallium/hud: round max_value to print nicely rounded numbers next to graphs

This improves readability a lot.

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák
2016-08-18 19:42:16 +02:00
parent 0f1befe926
commit 0328b20050
3 changed files with 80 additions and 4 deletions

View File

@@ -379,9 +379,10 @@ hud_pipe_query_install(struct hud_batch_query_context **pbq,
}
hud_pane_add_graph(pane, gr);
pane->type = type; /* must be set before updating the max_value */
if (pane->max_value < max_value)
hud_pane_set_max_value(pane, max_value);
pane->type = type;
return;
fail_info: