aboutsummaryrefslogtreecommitdiffstats
path: root/include/gfx_rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gfx_rules.h')
-rw-r--r--include/gfx_rules.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/gfx_rules.h b/include/gfx_rules.h
index a8dd031e..c58fc5ba 100644
--- a/include/gfx_rules.h
+++ b/include/gfx_rules.h
@@ -134,12 +134,14 @@
#endif
#if GFX_USE_GDISP
- #if GDISP_MULTIPLE_DRIVERS
+ #if GDISP_TOTAL_CONTROLLERS > 1
+ #ifndef GDISP_CONTROLLER_LIST
+ #error "GDISP Multiple Controllers: You must specify a value for GDISP_CONTROLLER_LIST"
+ #endif
#ifndef GDISP_PIXELFORMAT
#if GFX_DISPLAY_RULE_WARNINGS
- #warning "GDISP: GDISP_MULTIPLE_DRIVERS requires GDISP_PIXELFORMAT to be set. It has been defaulted to GDISP_PIXELFORMAT_RGB565."
+ #error "GDISP Multiple Controllers: You must specify a value for GDISP_PIXELFORMAT"
#endif
- #define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565
#endif
#endif
#if GDISP_NEED_ANTIALIAS && !GDISP_NEED_PIXELREAD