Fix all remaining warnings in gp2x build. The compiler is a bit more picky about the includes and feature macros.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1352 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
7
text.c
7
text.c
@@ -515,11 +515,16 @@ byte *Render_text_SFont(const char *str, int font_number, int *width, int *heigh
|
||||
return new_brush;
|
||||
}
|
||||
|
||||
#ifdef NOTTF
|
||||
#define TTFONLY __attribute__((unused))
|
||||
#else
|
||||
#define TTFONLY
|
||||
#endif
|
||||
|
||||
// Crée une brosse à partir des paramètres de texte demandés.
|
||||
// Si cela réussit, la fonction place les dimensions dans width et height,
|
||||
// et retourne l'adresse du bloc d'octets.
|
||||
byte *Render_text(const char *str, int font_number, int size, int antialias, int bold, int italic, int *width, int *height)
|
||||
byte *Render_text(const char *str, int font_number, TTFONLY int size, int TTFONLY antialias, TTFONLY int bold, TTFONLY int italic, int *width, int *height)
|
||||
{
|
||||
T_Font *font = font_list_start;
|
||||
int index=font_number;
|
||||
|
||||
Reference in New Issue
Block a user