Mesa (master): gallium/hud: fix printing % next to panes
Marek Olšák
mareko at kemper.freedesktop.org
Thu Aug 6 18:50:40 UTC 2015
Module: Mesa
Branch: master
Commit: 4e2a3e0376ca4fe39ca05e80557edfaa12e93e2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e2a3e0376ca4fe39ca05e80557edfaa12e93e2b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Aug 2 18:11:09 2015 +0200
gallium/hud: fix printing % next to panes
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/auxiliary/hud/hud_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index d3ad271..275070d 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 */
More information about the mesa-commit
mailing list