- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
16 lines
358 B
C++
16 lines
358 B
C++
#include "Tactility/lvgl/LvglDisplay.h"
|
|
|
|
#include <Tactility/Check.h>
|
|
|
|
namespace tt::lvgl {
|
|
|
|
hal::Display* getDisplay() {
|
|
auto* lvgl_display = lv_display_get_default();
|
|
assert(lvgl_display != nullptr);
|
|
auto* hal_display = (tt::hal::Display*)lv_display_get_user_data(lvgl_display);
|
|
assert(hal_display != nullptr);
|
|
return hal_display;
|
|
}
|
|
|
|
}
|