From 7de3b871c6c859fedfaa4d0817c1a1c2c71e0feb Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Fri, 15 Aug 2025 17:10:23 +0200 Subject: [PATCH] Simplify NativeDisplay interface --- Drivers/EspLcdCompat/Source/EspLcdDisplay.h | 5 ++--- Tactility/Include/Tactility/hal/display/DisplayDevice.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Drivers/EspLcdCompat/Source/EspLcdDisplay.h b/Drivers/EspLcdCompat/Source/EspLcdDisplay.h index 949f4b81..693bcc03 100644 --- a/Drivers/EspLcdCompat/Source/EspLcdDisplay.h +++ b/Drivers/EspLcdCompat/Source/EspLcdDisplay.h @@ -47,9 +47,8 @@ public: // region NativedDisplay - bool supportsNativeDisplay() const final { return true; } - - std::shared_ptr getNativeDisplay() final; + /** @return a NativeDisplay if this device supports it */ + std::shared_ptr _Nullable getNativeDisplay() final; // endregion }; diff --git a/Tactility/Include/Tactility/hal/display/DisplayDevice.h b/Tactility/Include/Tactility/hal/display/DisplayDevice.h index 2d6c06da..c3403908 100644 --- a/Tactility/Include/Tactility/hal/display/DisplayDevice.h +++ b/Tactility/Include/Tactility/hal/display/DisplayDevice.h @@ -43,8 +43,7 @@ public: virtual bool startLvgl() { return false; } virtual bool stopLvgl() { return false; } - virtual bool supportsNativeDisplay() const { return false; } - virtual std::shared_ptr getNativeDisplay() { return nullptr; } + virtual std::shared_ptr _Nullable getNativeDisplay() { return nullptr; } }; } // namespace tt::hal::display