summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-08-02 18:11:09 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-08-06 20:44:36 +0200
commit4e2a3e0376ca4fe39ca05e80557edfaa12e93e2b (patch)
tree0b16cb9837df3fcb1b45a02c8e3bd4513576d0cb
parentcbad30344d6e0b1ccc9fc8d5a8e6560e97dd9188 (diff)
gallium/hud: fix printing % next to panes
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/gallium/auxiliary/hud/hud_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index d3ad271f515c..275070d16644 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -332,7 +332,7 @@ hud_pane_accumulate_vertices(struct hud_context *hud,
number_to_human_readable(pane->max_value * i / 5,
pane->type, str);
- hud_draw_string(hud, x, y, str);
+ hud_draw_string(hud, x, y, "%s", str);
}
/* draw info below the pane */