zephyr/samples/modules/lvgl/screen_transparency
Tom Hughes 37deb317c5 samples: modules: lvgl: transparency: Fix supported pixel format check
Found while building with clang and -Wtautological-compare:

samples/modules/lvgl/screen_transparency/src/main.c:47:45: error:
bitwise or with non-zero value always evaluates to true
[-Werror,-Wtautological-bitwise-compare]

if (!(display_caps.supported_pixel_formats | PIXEL_FORMAT_ARGB_8888)) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-01-16 02:39:21 +01:00
..
src samples: modules: lvgl: transparency: Fix supported pixel format check 2025-01-16 02:39:21 +01:00
CMakeLists.txt
Kconfig
prj.conf
README.rst
sample.yaml

.. zephyr:code-sample:: lvgl-screen-transparency
   :name: LVGL screen transparency
   :relevant-api: display_interface

   Rendering to screens with transparency support using LVGL.

Overview
********

A sample application that demonstrates how to use LVGL to render to
screens that support transparency, like OSD overlays.

Requirements
************

* A board with a display that supports ``ARGB8888`` color.

.. _lvgl_screen_transparency_building_and_running:

Building and Running
********************

The demo can be built as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/screen_transparency
   :host-os: unix
   :board: native_sim
   :goals: run
   :compact: