This commit is contained in:
Vincent Wei
2019-02-24 15:02:16 +08:00
parent fb01003c45
commit 0f562cd39f
3 changed files with 5 additions and 12 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ static void unlock(void)
static BOOL load_fonts(void)
{
int i;
int font_table_size = se_font_desc.font_name_map_size;
int font_table_size = se_font_desc.font_name_map_size;
BOOL result = FALSE;
#if SE_MINIGUI_TRACE
-7
View File
@@ -115,13 +115,6 @@ static void* load_font_data (DEVFONT* devfont, const char* font_name, const char
goto error;
}
#if 0
if (real_font_name) {
strncpy (real_font_name, filehead->font_name, LEN_DEVFONT_NAME_MAX);
real_font_name [LEN_DEVFONT_NAME_MAX] = '\0';
}
#endif
fclose (fp);
return upf_info;
+4 -4
View File
@@ -40,9 +40,9 @@
#ifndef GUI_FONT_UPF_H
#define GUI_FONT_UPF_H
#define LEN_VERSION_MAX 10
#define LEN_VENDER_NAME_MAX 12
#define LEN_DEVFONT_NAME_MAX 127
#define LEN_VERSION_MAX 10
#define LEN_VENDER_NAME_MAX 12
#define LEN_UPF_NAME_MAX 127
#ifdef __cplusplus
extern "C" {
@@ -100,7 +100,7 @@ typedef struct
char vender_name [LEN_VENDER_NAME_MAX];
Uint16 endian;
char font_name [LEN_DEVFONT_NAME_MAX + 1];
char font_name [LEN_UPF_NAME_MAX + 1];
Uint8 width;
Uint8 height;