Stats screen: report if TTF is enabled

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@308 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-25 13:35:28 +00:00
parent c28a01522a
commit aeda49b9bb
3 changed files with 33 additions and 17 deletions

15
texte.c
View File

@@ -36,7 +36,7 @@
#include "struct.h"
#include "global.h"
// Initialisation à faire une fois au début du programme
void Initialisation_Texte(void)
{
#ifndef NOTTF
@@ -44,6 +44,16 @@ void Initialisation_Texte(void)
#endif
}
// Informe si texte.c a été compilé avec l'option de support TrueType ou pas.
int Support_TrueType()
{
#ifdef NOTTF
return 0;
#else
return 1;
#endif
}
#ifndef NOTTF
byte *Rendu_Texte_TTF(const char *Chaine, int Taille, int AntiAlias, int *Largeur, int *Hauteur)
@@ -127,6 +137,9 @@ byte *Rendu_Texte_TTF(const char *Chaine, int Taille, int AntiAlias, int *Largeu
}
#endif
// Crée une brosse à partir des paramètres de texte demandés.
// Si cela réussit, la fonction place les dimensions dans Largeur et Hauteur,
// et retourne l'adresse du bloc d'octets.
byte *Rendu_Texte(const char *Chaine, int Taille, int AntiAlias, int *Largeur, int *Hauteur)
{
#ifndef NOTTF