From 1ed680bff64f28a8c7a9bd407f4cda823a309180 Mon Sep 17 00:00:00 2001 From: hiruna Date: Fri, 26 May 2023 22:17:50 +1000 Subject: [PATCH] =?UTF-8?q?=1B[200~Backward=20compatibility=20for=20LV=5FH?= =?UTF-8?q?OR=5FRES=5FMAX=20&=20LV=5FVER=5FRES=5FMAX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lvgl_helpers.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lvgl_helpers.h b/lvgl_helpers.h index c010174..6bd01b0 100644 --- a/lvgl_helpers.h +++ b/lvgl_helpers.h @@ -22,7 +22,13 @@ extern "C" { /********************* * DEFINES *********************/ - +/* Backward compatibility for LV_HOR_RES_MAX & LV_VER_RES_MAX */ +#if defined (CONFIG_LV_HOR_RES_MAX) +#define LV_HOR_RES_MAX CONFIG_LV_HOR_RES_MAX +#endif +#if defined (CONFIG_LV_VER_RES_MAX) +#define LV_VER_RES_MAX CONFIG_LV_VER_RES_MAX +#endif /* DISP_BUF_SIZE value doesn't have an special meaning, but it's the size * of the buffer(s) passed to LVGL as display buffers. The default values used * were the values working for the contributor of the display controller.