SDL window zoom out

In LVGL 9.1, lv_sdl_window_set_zoom(lv_display_t disp, uint8_t zoom) only allows integer zoom values >= 1.

This means you can zoom in a small window to a larger size, but cannot zoom out a large window to a smaller size. Changing the zoom value to a double would allow for zooming out and allow more granularity in resizing the window. This was possible in LVGL 8.4.

True! Using float is acceptable if SDL is used. (For embedded we don’t use float by default). Could you send a Pull request?

I have created a pull request for this: float zoom for sdl window [https://forum.lvgl.io/t/sdl-window-zoom-ou… by TobyKelsey123 · Pull Request #7089 · lvgl/lvgl · GitHub . Note the original author is Adam Durling adam.durling@third.com (who does not have a github account) but I have reviewed and tested the changes.

Thank you! Just commented on GitHub.