初级会员

- 积分
- 87
- 金钱
- 87
- 注册时间
- 2015-7-23
- 在线时间
- 11 小时
|
5金钱
把M4的综合实验的两帧图像改成三帧图像怎么烧进开发板还是两帧图像的啊?SPB.c里面的文件都该了,是不是还要在什么地方改啊?问题出在spbdev.frame吗?还是在什么地方?无法滑进第三祯界面,但第三祯的图标在第二祯的界面就可以显示,怎么回事啊,弄了两周了
sramlcdbuf=gui_memex_malloc(spbdev.spbheight*spbdev.spbheight*6); //需要3帧缓存
if(sramlcdbuf==NULL)return 1;//错误
spbdev.frame=0;
res=ai_load_picfile(spb_bkpic_path_tbl[lcdtype][0],0,0,spbdev.spbwidth,spbdev.spbheight,0);//加载第一页背景图片
if(res==0) res=spb_load_icos(0); //加载第0帧图标
spbdev.frame=1;
if(res==0)
res=ai_load_picfile(spb_bkpic_path_tbl[lcdtype][1],0,0,spbdev.spbwidth,spbdev.spbheight,0);//加载第二页背景图片
if(res==0)
res=spb_load_icos(1); //加载第1帧图标
///////////////////////////////////////////////
spbdev.frame=2;
if(res==0)
res=ai_load_picfile(spb_bkpic_path_tbl[lcdtype][2],0,0,spbdev.spbwidth,spbdev.spbheight,0);//加载第一页背景图片
if(res==0)
res=spb_load_icos(2); //加载第2帧图标
|
|