Skip to content

Standardize how display_set_orientation functionsΒ #82582

@danieldegrasse

Description

@danieldegrasse

Is your enhancement proposal related to a problem? Please describe.
display_set_orientation is currently somewhat arbitrary- some drivers swap the x/y resolution they report when the display orientation is set, and other drivers do not.

For a list, see here: #73360 (comment)

Describe the solution you'd like
We should standardize whose responsibility it is to handle a display rotation event- should the driver change the resolution it reports, or should the consumer of the display API swap its x/y coordinates? Personally I think the consumer should handle this. Initial work to implement this for LVGL was done in #73556.

Describe alternatives you've considered
We can continue having display rotation be a bit arbitrary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions