mtk修改开机动画 ,每次当我把图片替换时,在编译的时候会把我图片给自动删了,而且在met_img_resource.h
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mtk修改开机动画 ,每次当我把图片替换时,在编译的时候会把我图片给自动删了,而且在met_img_resource.h相关的知识,希望对你有一定的参考价值。
文件中static const mmi_mte_img_resource_struct g_mmi_mte_img_resource[]中把2735, 4527, "PLUTO128X160\\MAINLCD\\ACTIVE\\POWERONOFF\\POON.GIF", // IMG_ID_PHNSET_ON_START给删了
参考技术A 开关机动画是只需要替换图片就可以,但是一定要放在压缩文件里的相应位置,因为你的文件夹是由压缩文件在编译的过程中解压出来的,如果放在文件夹下,在编译过后会更换成压缩文件夹下的内容,不知道你的是不是这个问题?MTK修改开机动画和墙纸要怎修改? 是在res.setting.c的populateDisplaychar中修改那个路径? 如下程序:
#ifdef __MMI_NOKIA_STYLE__
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_WALLPAPER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\NOKIA\\\\Wall05."__MMI_RES_TYPE_WALLPAPER__, "wallpaper download");
#elseADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_WALLPAPER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05."__MMI_RES_TYPE_WALLPAPER__, "wallpaper download");
#endif
#else
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_WALLPAPER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05.gif", "wallpaper download");
#endif
#ifdef __MMI_RES_TYPE_SCREEN_SAVER__
#ifdef __MMI_NOKIA_STYLE__
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05."__MMI_RES_TYPE_SCREEN_SAVER__, "wallpaper download");
#else
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05."__MMI_RES_TYPE_SCREEN_SAVER__, "wallpaper download");
#endif
#elif defined __MMI_RES_TYPE_WALLPAPER__
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05."__MMI_RES_TYPE_WALLPAPER__, "wallpaper download");
#else
ADD_APPLICATION_IMAGE2(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\Wallpaper\\\\Wall05.gif", "wallpaper download");
#endif
#endif /* __MMI_THEMES_V2_SUPPORT__ */
ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_SYSTEM, CUST_IMG_BASE_PATH "\\\\NoImage.bmp", "IMG_WALLPAPER_SYSTEM");
ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_DOWNLAOD, CUST_IMG_BASE_PATH "\\\\NoImage.bmp", "IMG_WALLPAPER_DOWNLAOD");
ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_CAPTION, CUST_IMG_BASE_PATH "\\\\NoImage.bmp", "IMG_WALLPAPER_CAPTION");
ADD_APPLICATION_STRING2(STR_WALLPAPER_SELECT_CAPTION, "Wallpaper Select", "STR_WALLPAPER_SET");
ADD_APPLICATION_STRING2(
STR_IDLE_WP_DECODE_ERR,
"Image error, Restore Default Wallpaper",
"User defined wallpaper error message");
……
//Denny mod for wallpaper
#ifdef __MMI_NOKIA_STYLE__
#ifdef __MP539_HARDWARE_V1__
char gif_path[] = CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\WallPaper\\\\NOKIA\\\\Wall05."__MMI_RES_TYPE_WALLPAPER__;
#else
char gif_path[] = CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\WallPaper\\\\NOKIA\\\\Wall05.gif";
#endif
#else
char gif_path[] = CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\WallPaper\\\\Wall05."__MMI_RES_TYPE_WALLPAPER__;
#endif
#else
char gif_path[] = CUST_IMG_PATH "\\\\MainLCD\\\\IdleScreen\\\\WallPaper\\\\Wall05.gif";
#endif
char m3d_path[] = CUST_IMG_PATH "\\\\MainLCD\\\\Active\\\\M3D\\\\m3d01.m3d";
char *path = NULL;
int position = 0;
是不是修改路径(Wall05)就行了?还是还要修改其他的的程序?新手向大家求教了!还有修改开机动画的图片不会工怎么回事?
__MMI_RES_TYPE_POWER_ONOFF__ "JPG"
[D] __MMI_RES_TYPE_SCREEN_SAVER_SEL__ ( (2) )
[D] __MMI_RES_TYPE_SCREEN_SAVER__ "JPG"
[D] __MMI_RES_TYPE_SUBLCD_WALLPAPER__ "GIF"
[D] __MMI_RES_TYPE_WALLPAPER_SEL__ ( (2) )
[D] __MMI_RES_TYPE_WALLPAPER__ "JPG"
poweronoff 文件夹(MainLCD\ active\目录下面),
注意要看你定义的 MainLCD size ,然后替换图片即可,替换图片size要一致。
壁纸: \MainLCD\Active\Poweronoff #define CFG_MMI_WALLPAPER_NUM
定义 wallpaper (壁纸)的类型: #define CFG_MMI_RES_TYPE_WALLPAPER_SEL (__RES_TYPE_JPG__)本回答被提问者采纳 参考技术B 在系统设置,待机显示
以上是关于mtk修改开机动画 ,每次当我把图片替换时,在编译的时候会把我图片给自动删了,而且在met_img_resource.h的主要内容,如果未能解决你的问题,请参考以下文章
MTK修改开机动画和墙纸要怎修改? 是在res.setting.c的populateDisplaychar中修改那个路径? 如下程序: