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: Use signed-integer for API that specifies coordinations #85443

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

soburi
Copy link
Member

@soburi soburi commented Feb 8, 2025

Change the arguments of cfb_invert_area, cfb_print, and cfb_draw_(point|line|rect), which used unsigned integers to specify coordinates to signed integers.

This is because coordinate calculations are usually based on real numbers, so it is difficult to use unless negative numbers are accepted.
We clip drawings outside the drawable area on the implementation side.

@soburi soburi mentioned this pull request Feb 8, 2025
9 tasks
Change the arguments of `cfb_invert_area`, `cfb_print`, and
`cfb_draw_(point|line|rect)`, which used unsigned integers to specify
coordinates to signed integers.

This is because coordinate calculations are usually based on real
numbers, so it is difficult to use unless negative numbers are
accepted.
We clip drawings outside the drawable area on the implementation side.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
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