Skip to content
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

fix(image): add data_size filed to all c-array images #5608

Merged
merged 1 commit into from Feb 7, 2024

Conversation

XuNeo
Copy link
Collaborator

@XuNeo XuNeo commented Feb 6, 2024

Description of the feature or fix

Search and replace all existing C-array images in demos/ examples folder to add data_size = sizeof(map)

Notes

Search and replace all existing C-array images in demos/ examples folder to add data_size = sizeof(map)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
@C47D
Copy link
Contributor

C47D commented Feb 6, 2024

Impressive work, did you do it manually?

@XuNeo
Copy link
Collaborator Author

XuNeo commented Feb 6, 2024

I used regular expression to match the pattern of

    .data = img_multilang_avatar_12_map,
};

(\s+\.data = (\w+),\n)\};
and replace it with $1\n .data_size = sizeof($2),\n}; in folder demos and examples.

@FASTSHIFT FASTSHIFT merged commit 7579b96 into lvgl:master Feb 7, 2024
16 checks passed
@XuNeo XuNeo deleted the fix-c-array-image-data-size branch February 7, 2024 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants