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

fb: cfb: Remove unused argument from font API #85442

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

soburi
Copy link
Member

@soburi soburi commented Feb 8, 2025

cfb_get_font_size and cfb_get_numof_fonts take a
const struct driver * as a first argument, but not use it.

Remove the argument and clean up related sources.

The changes introduced in zephyrproject-rtos#67881 not support fonts whose heights are
not integer multiples of 8.
This commit removes the old restriction.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Add native_sim/native/64 to make it easier to run tests in
a 64-bit ubuntu environment.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Previously, characters not present in the font were replaced
with a space character.
It has problem if the space character font is not trasnparent data.
This change make they will be drawn with zero data instead.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
CHARACTER_FRAMEBUFFER_SHELL_DRIVER_NAME is not used.
Remove it.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@soburi soburi force-pushed the cfb_remove_unused_arg branch from f633281 to 2da50b0 Compare February 8, 2025 04:55
@soburi soburi changed the title Cfb remove unused arg fb: cfb: Remove unused argument from font API Feb 8, 2025
@soburi soburi mentioned this pull request Feb 8, 2025
9 tasks
`cfb_get_font_size` and `cfb_get_numof_fonts` take a
`const struct driver *` as a first argument, but not use it.

Remove the argument and clean up related sources.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@soburi soburi force-pushed the cfb_remove_unused_arg branch from 2da50b0 to 3541af2 Compare February 8, 2025 09:31
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.

1 participant