Closed Viatorus closed 2 years ago
the SDL driver implementation should use the physical_hor_res/physical_ver_res instead of hor_res/ver_res when flushing.
Makes sense. disp_drv.offset_x/y
should be considered as well. Could you send a Pull request with the fix?
If someone (like we) is using the same output window for multiple LVGL drivers, the SDL driver implementation should use the
physical_hor_res/physical_ver_res
instead ofhor_res/ver_res
when flushing.https://github.com/lvgl/lv_drivers/blob/07a1d87d3c41b34de28c95d8443e9db53cce928f/sdl/sdl.c#L145-L148
Otherwise, the flush will not work probably.
Our current workaround is:
Which work, but doesn't feels right.