aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/multiple_displays/gfxconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gdisp/multiple_displays/gfxconf.h')
-rw-r--r--demos/modules/gdisp/multiple_displays/gfxconf.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/demos/modules/gdisp/multiple_displays/gfxconf.h b/demos/modules/gdisp/multiple_displays/gfxconf.h
index 60467f93..959f1d0b 100644
--- a/demos/modules/gdisp/multiple_displays/gfxconf.h
+++ b/demos/modules/gdisp/multiple_displays/gfxconf.h
@@ -46,16 +46,20 @@
#define GDISP_INCLUDE_FONT_UI2 TRUE
-#define GDISP_TOTAL_DISPLAYS 2
-
-/* Uncomment the following lines if you want to use multiple displays on
- * different controllers.
+/* You must either define GDISP_TOTAL_DISPLAYS or GDISP_DRIVER_LIST for multiple displays.
+ * You cannot define both!
+ *
+ * Defining GDISP_TOTAL_DISPLAYS will create multiple instances of the one default driver.
+ * Defining GDISP_DRIVER_LIST allows you to specify multiple different drivers.
*
- * Change the definitions to suit your hardware.
- * Currently all controllers must use the same pixel format.
+ * Extra Notes for GDISP_DRIVER_LIST:
+ *-----------------------------------
*
- * Remember that GDISP_TOTAL_DISPLAYS above must match the **Total**
- * number of displays in your system across all controllers.
+ * The same controller can appear more than once in the list.
+ *
+ * You must specify a GDISP_PIXELFORMAT that the application will work in. This
+ * is translated into each drivers internal pixel format by the driver. You the
+ * pixel format that is most common accross your drivers (for efficiency).
*
* Optionally, you can also specify hardware characteristics that are common to
* all your controllers. This significantly improves code and speed efficiency
@@ -72,9 +76,9 @@
* #define GDISP_HARDWARE_DRAWPIXEL TRUE
* #define GDISP_HARDWARE_FILLS TRUE
*/
-//#define GDISP_TOTAL_CONTROLLERS 2
-//#define GDISP_CONTROLLER_LIST GDISPVMT_Win32, GDISPVMT_Win32
-//#define GDISP_CONTROLLER_DISPLAYS 1, 1
-//#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB888
+#define GDISP_TOTAL_DISPLAYS 2
+
+//#define GDISP_DRIVER_LIST GDISPVMT_Win32, GDISPVMT_Win32
+//#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB888
#endif /* _GFXCONF_H */