From 32c53578e00cad1b33479eb683c51470aaa4e5d7 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Wed, 6 May 2020 22:34:09 -0500 Subject: [PATCH] Add printf attrtibute to Draw_DrawFormattedString --- sysmodules/rosalina/include/draw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysmodules/rosalina/include/draw.h b/sysmodules/rosalina/include/draw.h index d303e78..8d409e7 100644 --- a/sysmodules/rosalina/include/draw.h +++ b/sysmodules/rosalina/include/draw.h @@ -77,6 +77,8 @@ void Draw_Unlock(void); void Draw_DrawCharacter(u32 posX, u32 posY, u32 color, char character); u32 Draw_DrawString(u32 posX, u32 posY, u32 color, const char *string); + +__attribute__((format(printf,4,5))) u32 Draw_DrawFormattedString(u32 posX, u32 posY, u32 color, const char *fmt, ...); void Draw_FillFramebuffer(u32 value);