ret = get_bmp_head(bmp_fp,map_list.head);
ret = get_bmp_info(bmp_fp,map_list.info);
printf("****************************|\n"
"* Map information:\n "
"* Style:%c%c\n"
"* Size:%d Width:%d Hight:%d Bpp:%d Compression:%d\n"
"* MADE BY Yaong\n"
"****************************|\n",map_list.head->map_id[0],map_list.head->map_id[1], \
map_list.head->file_size,map_list.info->width,map_list.info-
>hight,map_list.info->bpp,map_list.info->compression);
/*读取位图信息*/
map_data = read_bmp(bmp_fp,&map_list);
while(chose != 0){
scanf("%d",&chose);
switch(chose){
case 1:/*向上显示*/
show_bmp_24_up(lcd_fb0>fbp,map_data,&scr_info[0],map_list.info);
break;
case 2:/*向下显示*/
show_bmp_24_down(lcd_fb0>fbp,map_data,&scr_info[0],map_list.info);
break;
default:
printf("no commamd!");
break;
}
putchar('\n');
}
if(map_data != NULL)
free(map_data);
exit_bmp(bmp_fp,map_list.head,map_list.info);
lcd_key_exit(lcd_fb0,&scr_info[0]);
return 0;
}