all repos — mgba @ 416b1a13f40f2dbab14d1678ae39b2b472adb274

mGBA Game Boy Advance Emulator

GUI: Use ATTRIBUTE_FORMAT on GUIFontPrintf
Jeffrey Pfau jeffrey@endrift.com
Sun, 30 Aug 2015 22:20:46 -0700
commit

416b1a13f40f2dbab14d1678ae39b2b472adb274

parent

e6429cc8a255fc9ee63cb0463b6fae8015b8038f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/util/gui/font.hsrc/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);