This commit is contained in:
lixianjing 2019-05-08 11:27:11 +08:00
commit 913df5a98a
2 changed files with 2 additions and 3 deletions

View File

@ -549,8 +549,7 @@ static ret_t slide_menu_on_event(widget_t* widget, event_t* e) {
}
break;
}
default:
break;
default: { return RET_OK; }
}
return RET_STOP;

View File

@ -21,7 +21,7 @@ static ret_t load_image(const char* filename, bitmap_t* image) {
memset(info, 0x00, sizeof(asset_info_t));
info->size = size;
info->type = ASSET_TYPE_IMAGE;
info->subtype = 0;
info->subtype = ASSET_TYPE_IMAGE_PNG;
info->refcount = 1;
info->is_in_rom = FALSE;
strncpy(info->name, "name", TK_NAME_LEN);