GUI: Use ATTRIBUTE_FORMAT on GUIFontPrintf
Jeffrey Pfau jeffrey@endrift.com
Sun, 30 Aug 2015 22:20:46 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/util/gui/font.h
→
src/util/gui/font.h
@@ -33,6 +33,7 @@ unsigned GUIFontHeight(const struct GUIFont*);
unsigned GUIFontGlyphWidth(const struct GUIFont*, uint32_t glyph); unsigned GUIFontSpanWidth(const struct GUIFont*, const char* text); +ATTRIBUTE_FORMAT(printf, 6, 7) void GUIFontPrintf(const struct GUIFont*, int x, int y, enum GUITextAlignment, uint32_t color, const char* text, ...); void GUIFontPrint(const struct GUIFont*, int x, int y, enum GUITextAlignment, uint32_t color, const char* text); void GUIFontDrawGlyph(const struct GUIFont*, int x, int y, uint32_t color, uint32_t glyph);