aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c')
-rw-r--r--boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c b/boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c
index 7619b074..35b7a5e3 100644
--- a/boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c
+++ b/boards/base/STM32F469i-Discovery/stm32f469i_raw32_ugfx.c
@@ -1,7 +1,9 @@
#include "../../../gfx.h"
-#undef Red
-#undef Green
-#undef Blue
+#if GFX_COMPAT_V2 && GFX_COMPAT_OLDCOLORS
+ #undef Red
+ #undef Green
+ #undef Blue
+#endif
#include "stm32f4xx.h"
#include "stm32f4xx_hal.h"