Skip to content

displayio: support fractional Group scales in LVGL - #11932

Open
tannewt wants to merge 2 commits into
adafruit:mainfrom
tannewt:lvgl_fractional_scaling
Open

tannewt wants to merge 2 commits into
adafruit:mainfrom
tannewt:lvgl_fractional_scaling

Conversation

@tannewt

@tannewt tannewt commented Nov 19, 2026

Copy link
Copy Markdown
Member

LVGL supports scaling in 1/256th increments by storing scale as a fixed point Q8. This change allows scaling from 1/256 upwards. If the given float scale isn't exactly divisible by 1/256th then the next lowest Q8 value will be used internally. This prevents objects from getting bigger than expected. The requested scale will be read back so that it can be used in computing a subsequent scale.

LVGL supports scaling in 1/256th increments by storing scale as a fixed
point Q8. This change allows scaling from 1/256 upwards. If the given
float scale isn't exactly divisible by 1/256th then the next lowest Q8
value will be used internally. This prevents objects from getting bigger
than expected. The requested scale will be read back so that it can be
used in computing a subsequent scale.
@tannewt
tannewt requested a review from a team November 20, 2026 19:56
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