- GitHub actions changed to build simulator on macOS (it's broken, but at least we get a good code portability check for now!) - `Buildscripts/` shell scripts updated to use `/bin/sh` so it works on macOS too - Various includes fixed in various subprojects so the code is more portable
15 lines
343 B
C++
15 lines
343 B
C++
#include "lvgl/LvglDisplay.h"
|
|
#include "Check.h"
|
|
|
|
namespace tt::lvgl {
|
|
|
|
hal::Display* getDisplay() {
|
|
auto* lvgl_display = lv_display_get_default();
|
|
tt_assert(lvgl_display != nullptr);
|
|
auto* hal_display = (tt::hal::Display*)lv_display_get_user_data(lvgl_display);
|
|
tt_assert(hal_display != nullptr);
|
|
return hal_display;
|
|
}
|
|
|
|
}
|