Skip to content

Conversation

@faxe1008
Copy link
Contributor

While designing some GUI for rounded displays, I encountered the convenience issue that I like to prototype my UIs in the native sim and only do a final check on actual hardware, since its much fast to iterate. Anyways for rounded displays its annoying to have to guess which part of the screen is not visible. It might not be completely pixel perfect but it allows for first good estimate:

Screenshot 2025-11-28 192851

On real hardware:
Unbenannt

Note: the second commit may be considered optional, but at the point where the function takes 18 parameters it felt sensibly to add this refactoring.

Adds `SDL_DISPLAY_ROUNDED_MASK` and `SDL_DISPLAY_ROUNDED_MASK_COLOR`
Kconfig options to mask a elliptical area of the display. This is useful
for prototyping alignments for rounded displays.

Signed-off-by: Fabian Blatz <[email protected]>
Since the number of function arguments grows out of hand, place them into
structs and pass a struct to the method instead.

Signed-off-by: Fabian Blatz <[email protected]>
@faxe1008 faxe1008 force-pushed the sdl_eliptic_display branch from 18430a3 to 4c00cb9 Compare November 28, 2025 18:59
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants