Closed Viatorus closed 1 year ago
Tested with SDL and SDL_GPU port. Worked.
Would had been great if this would be part of LVGL 8.3 @kisvegabor :/
IMO the fix is simple enough that we can merge it to release/v8.3
.
EDIT: There is also a minor compilation issue affecting 8.3.0 so perhaps an 8.3.1 release in a few days would be worthwhile to accumulate these fixes.
Should I change the target branch to release/8.3?
Sorry for the late reply.
Let's merge it to master
and I'll cherry-pick it to release/v8.3
I cherry-picked some fixes in the LVGL repo too, so we can release v8.3.1 next week or so.
With this MR, the required internal functions between
sdl.h
andsdl_gpu.h
are put into a separate header:sdl_common_internal.h
.Why is this needed?
Since this commit: https://github.com/lvgl/lv_drivers/commit/462d9cdeb83df9838f3f02e6f156fc37599c9add the
SDL2/SDL.h
include is visible to other translation units from "public" LVGL headers.Since this commit: https://github.com/lvgl/lv_drivers/commit/2a872a6912ca0dfcc7d8e243a5399d8f8c71844c
SDL2/SDL.h
is only included, if SDL is actually used.Remaining problem: You still include the heavy
SDL2/SDL.h
from "public" LVGL headers into other translation units of the user. This wasn't the case before, and isn't the case for other display drivers (e.g. wayland, gtk, win32dr).This can lead to other problems like one I faced today with our static code analyzer tool (clang-tidy), who tries to parse the included
<SDL2/SDL.h>
header while using GCC 11.