Skip to content

LV_HOR_RES_MAX not compatible with LVGL v8 #122

@morganrallen

Description

@morganrallen

_MAX has been dropped.

A snippet like this should suffice to support v8 and maintain reverse compatibility.

diff --git a/lvgl_helpers.h b/lvgl_helpers.h
index 5fd6f09..90b92ed 100644
--- a/lvgl_helpers.h
+++ b/lvgl_helpers.h
@@ -34,6 +34,10 @@ extern "C" {
  * color format being used, for RGB565 each pixel needs 2 bytes.
  * When using the mono theme, the display pixels can be represented in one bit,
  * so the buffer size can be divided by 8, e.g. see SSD1306 display size. */
+#ifndef LV_HOR_RES_MAX
+#define LV_HOR_RES_MAX LV_HOR_RES
+#endif
+
 #if defined (CONFIG_CUSTOM_DISPLAY_BUFFER_SIZE)
 #define DISP_BUF_SIZE   CONFIG_CUSTOM_DISPLAY_BUFFER_BYTES
 #else

This appears to be the last issue to getting v8 compatibility, for at least the FT6X36 driver.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions