Files
tactility/Tactility/Source/lvgl/Lvgl.cpp
T
Ken Van Hoeylandt 33bb742dfb Hal refactored (#99)
2024-12-02 00:32:39 +01:00

15 lines
336 B
C++

#include "lvgl/Lvgl.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;
}
}