Просмотр исходного кода

提高 rtgui_system_server_init 在自动初始化序列中的优先级

Signed-off-by: yangfasheng <yangfasheng@rt-thread.com>
yangfasheng 7 лет назад
Родитель
Сommit
a4b1bacf54
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 0
      src/font_freetype.c
  2. 1 1
      src/rtgui_system.c

+ 4 - 0
src/font_freetype.c

@@ -52,6 +52,10 @@
 #define PINFO(...)
 #endif
 
+#ifndef RT_DFS_ELM_MAX_LFN
+#define RT_DFS_ELM_MAX_LFN 255
+#endif
+
 #define _dc_get_pixel(dc, x, y)	\
     ((dc)->pixel + (y) * (dc)->pitch + (x) * rtgui_color_get_bpp((dc)->pixel_format))
 

+ 1 - 1
src/rtgui_system.c

@@ -64,7 +64,7 @@ int rtgui_system_server_init(void)
 
     return 0;
 }
-INIT_APP_EXPORT(rtgui_system_server_init);
+INIT_ENV_EXPORT(rtgui_system_server_init);
 
 /************************************************************************/
 /* RTGUI Timer                                                          */