-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define LV_FS_WIN32_LETTER "\0" error with lv_image_src_get_type
#7601
Comments
lv_image_src_get_type
/*The first byte shows the type of the image source*/
if(u8_p[0] >= 0x20 && u8_p[0] <= 0x7F) {
return LV_IMAGE_SRC_FILE; /*If it's an ASCII character then it's file name*/
}
else if(u8_p[0] >= 0x80) {
return LV_IMAGE_SRC_SYMBOL; /*Symbols begins after 0x7F*/
}
else {
return LV_IMAGE_SRC_VARIABLE; /*`lv_image_dsc_t` is draw to the first byte < 0x20*/
} but |
Actually, I think the error is in the comment in /**< Set an upper cased letter on which the drive will accessible (e.g. 'A') */ but it seems to me that it should be /**< Set an upper cased letter to be the identifier for this file-system driver (e.g. 'A'). See docs under File System > Identifier Letters. */ Once done, then the call above that causes it should be (assuming 'A' as the driver identifier): lv_image_set_src(image1, "A:C:/path/to/test.jpeg"); /* If drive and directory should be specified. *
lv_image_set_src(image1, "A:test.jpeg"); /* If default drive and directory are already correct. * @liamHowatt , what do you think? |
oh, i used lv_port_pc_vscode with |
LVGL version
v9.0.0
Platform
windows SDL2 with vscode
What happened?
and no img show
change
\0
->A
okif path error it always show str
How to reproduce?
The text was updated successfully, but these errors were encountered: