فهرست منبع

Removed the const definition in hz12 font file info which causes hard fault when loading.
Also uploaded a working SongTi 12x12 font file.
Tested in stm32_radio.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@374 bbd45198-f89e-11dd-88c7-29a3b14d5316

kyle.hu.gz 15 سال پیش
والد
کامیت
d5b20ba603
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. BIN
      bsp/stm32_radio/resource/hzk12.fnt
  2. 2 2
      rtgui/common/hz12font.c

BIN
bsp/stm32_radio/resource/hzk12.fnt


+ 2 - 2
rtgui/common/hz12font.c

@@ -12293,12 +12293,12 @@ struct rtgui_font rtgui_font_hz12 =
 
 
 /* size = 196272 bytes */
 /* size = 196272 bytes */
 #else
 #else
-const struct rtgui_hz_file_font hz12 =
+struct rtgui_hz_file_font hz12 =
 {
 {
 	{RT_NULL}, 				/* cache root 		*/
 	{RT_NULL}, 				/* cache root 		*/
 	0, 				    	/* cache size 		*/
 	0, 				    	/* cache size 		*/
 	12, 					/* font size 		*/
 	12, 					/* font size 		*/
-	32,						/* font data size 	*/
+	24,						/* font data size 	*/
 	-1, 					/* fd 				*/
 	-1, 					/* fd 				*/
 	"/resource/hzk12.fnt"	/* font_fn 			*/
 	"/resource/hzk12.fnt"	/* font_fn 			*/
 };
 };