Update references to LV_DISPLAY_WIDTH

This commit is contained in:
C47D 2021-01-09 15:04:53 -06:00
parent 6a451cacf7
commit 55c314b685
9 changed files with 24 additions and 25 deletions

View file

@ -38,16 +38,16 @@ extern "C" {
/*GetMaxX Macro*/
#if CONFIG_LV_DISPLAY_ORIENTATION_LANDSCAPE
#define GetMaxX() (CONFIG_LV_DISPLAY_WIDTH - 1)
#define GetMaxX() (LV_HOR_RES_MAX - 1)
#else
#define GetMaxX() (CONFIG_LV_DISPLAY_HEIGHT - 1)
#define GetMaxX() (LV_VER_RES_MAX - 1)
#endif
/*GetMaxY Macro*/
#if CONFIG_LV_DISPLAY_ORIENTATION_LANDSCAPE
#define GetMaxY() (CONFIG_LV_DISPLAY_HEIGHT - 1)
#define GetMaxY() (LV_VER_RES_MAX - 1)
#else
#define GetMaxY() (CONFIG_LV_DISPLAY_WIDTH - 1)
#define GetMaxY() (LV_HOR_RES_MAX - 1)
#endif
#ifndef CONCAT3