Compare commits

...

2 Commits

Author SHA1 Message Date
Joel Bodenmann 8d6b2c4707 GTRANS: Update /demos/modules/gtrans/basic 2021-08-23 15:46:47 +02:00
Joel Bodenmann 317db95c46 GTRANS: Update types 2021-08-23 15:46:22 +02:00
4 changed files with 4 additions and 5 deletions

View File

@ -42,7 +42,6 @@
#define GDISP_NEED_VALIDATION GFXON
#define GDISP_NEED_CLIP GFXON
#define GDISP_NEED_TEXT GFXON
#define GDISP_NEED_ANTIALIAS GFXON
#define GDISP_NEED_UTF8 GFXON
#define GDISP_NEED_TEXT_KERNING GFXON

View File

@ -62,7 +62,7 @@ static const char* FrenchStrings[] = {
};
static const transTable FrenchTranslation = { sizeof(FrenchStrings)/sizeof(FrenchStrings[0]), FrenchStrings };
void updateText()
void updateText(void)
{
gCoord width = 400;
gCoord height = 30;

View File

@ -51,7 +51,7 @@ const char* gtransString(const char* string)
return _languageCurrent->strings[i];
}
const char* gtransIndex(unsigned index)
const char* gtransIndex(gU32 index)
{
if (!_languageCurrent) {
return 0;

View File

@ -27,7 +27,7 @@
* @brief A table containing translated strings.
*/
typedef struct transTable {
unsigned numEntries; /**< The number of strings that this table contains */
gU32 numEntries; /**< The number of strings that this table contains */
const char** strings; /**< The translated strings */
} transTable;
@ -59,7 +59,7 @@ const char* gtransString(const char* string);
*
* @return The string at the given index of the current language or 0 if it doesn't exist.
*/
const char* gtransIndex(unsigned index);
const char* gtransIndex(gU32 index);
/**
* @brief Set the base language.