lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
291 stars 310 forks source link

fix(sdl): if present, use physical display res for flushing #226

Closed Viatorus closed 2 years ago

Viatorus commented 2 years ago

Fixes https://github.com/lvgl/lv_drivers/issues/224

Tested with 2 LVGL displays on 1 and 2 SDL displays.

offset_x and and_offset_y doesn't need to be changed or adjusted since it is already taken care here: https://github.com/lvgl/lvgl/blob/cbff8e83e50fecc2b4b43d661deb91d8d81d6696/src/core/lv_refr.c#L1245-L1250

At least, it worked as expected in the tests.

kisvegabor commented 2 years ago

Looks good, thank you!