From 2ccc0f5edd5f8e61bd0760f30b2d66f2d977b2bf Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Sun, 18 Nov 2018 20:03:35 +0100 Subject: Added "const" qualifier to some functions. "cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space. Some minor optimizations. --- Source/Font.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Font.h') diff --git a/Source/Font.h b/Source/Font.h index d501a3e..14b98fd 100644 --- a/Source/Font.h +++ b/Source/Font.h @@ -20,9 +20,9 @@ * Global prototypes * *************************************/ -bool FontLoadImage(char* strPath, TYPE_FONT * ptrFont); +bool FontLoadImage(const char* strPath, TYPE_FONT * ptrFont); void FontSetSize(TYPE_FONT * ptrFont, short size); -void FontPrintText(TYPE_FONT *ptrFont, short x, short y, char* str, ...); +void FontPrintText(TYPE_FONT *ptrFont, short x, short y, const char* str, ...); void FontSetInitChar(TYPE_FONT * ptrFont, char c); void FontSetFlags(TYPE_FONT * ptrFont, FONT_FLAGS flags); void FontCyclic(void); -- cgit v1.2.3