RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.88k stars 1.98k forks source link

disp_dev: color depth and coordinate system #13787

Open silkeh opened 4 years ago

silkeh commented 4 years ago

I just added an implementation of disp_dev (see #13262) to #12509. I have some (admittedly minor) feedback about the current API:

Proposals:

bergzand commented 4 years ago

Add a return type to disp_dev_set_invert indicating success/failure. This should probably also be the case for disp_dev_map.

A different solution for this could be to add a number of capability flags to a driver to indicate different driver capabilities.

Citrullin commented 4 years ago

I have proposal for the color depth issue in the PR #14054 . While I did some simplifications of the API for coordinates in #14051 .

I also think that (even when explicitly noted) this is not an intuitive use of coordinates: a rectangle with two opposing corners having the coordinates (5,5) and (5,5) has an area of 0, not 1.

But the Coordinator simplification doesn't address this issue. Just a simplification of the API itself.

Use width (w) and height (h) instead of x2 and y2 to avoid any confusion. This is also what SDL, Gegl and Cairo do.

I agree with that one. Should address the issue.

Citrullin commented 4 years ago

Is it somehow possible to push this topic, so it is not going to die? :)

miri64 commented 4 years ago

Ping @aabadie @bergzand?

silkeh commented 3 years ago

Ping @aabadie @bergzand?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

Citrullin commented 2 years ago

Still an issue.