From 86a57349128197f58cf3f103e9adf9c2c348d418 Mon Sep 17 00:00:00 2001
From: inmarket <andrewh@inmarket.com.au>
Date: Wed, 16 Oct 2013 01:39:56 +1000
Subject: Multiple controller support can now auto-detect hardware capabilities
 at run-time. Specific hardware support can still be turned off or on via
 macros in gfxconf.h to improve efficiency. Multiple Display demo updated to
 match.

---
 .../gdisp/gdisp_multiple_displays/gfxconf.h        | 39 ++++++++++++++--------
 1 file changed, 26 insertions(+), 13 deletions(-)

(limited to 'demos')

diff --git a/demos/modules/gdisp/gdisp_multiple_displays/gfxconf.h b/demos/modules/gdisp/gdisp_multiple_displays/gfxconf.h
index 04ff1970..71c16864 100644
--- a/demos/modules/gdisp/gdisp_multiple_displays/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_multiple_displays/gfxconf.h
@@ -52,24 +52,37 @@
 #define GDISP_NEED_ASYNC		FALSE
 #define GDISP_NEED_MSGAPI		FALSE
 
-#define GDISP_INCLUDE_FONT_UI2			TRUE
+#define GDISP_INCLUDE_FONT_UI2	TRUE
 
-#define GDISP_TOTAL_DISPLAYS			2
+#define GDISP_TOTAL_DISPLAYS	2
 
-/* Uncomment the following lines and alter the definitions to match your
- * hardware if you want to try multiple displays on different controllers.
+/* Uncomment the following lines if you want to use multiple displays on
+ * different controllers.
+ *
+ * Change the definitions to suit your hardware.
+ * Currently all controllers must use the same pixel format.
+ *
  * Remember that GDISP_TOTAL_DISPLAYS above must match the **Total**
  * number of displays in your system across all controllers.
+ *
+ * Optionally, you can also specify hardware characteristics that are common to
+ * all your controllers. This significantly improves code and speed efficiency
+ * as the program doesn't have to detect the hardware method to use on each call.
+ *
+ * Hardware definitions can be set to:
+ * 		- TRUE		- all controllers support this routine
+ * 		- FALSE		- no controllers support this routine
+ * 		- if not specified then the code auto-detects the hardware.
+ *
+ * e.g
+ * 		#define GDISP_HARDWARE_STREAM_WRITE	FALSE
+ * 		#define GDISP_HARDWARE_STREAM_READ	FALSE
+ * 		#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_HARDWARE_DRAWPIXEL		TRUE
-//#define GDISP_HARDWARE_FILLS			TRUE
-//#define GDISP_HARDWARE_PIXELREAD		TRUE
-//#define GDISP_HARDWARE_CONTROL		TRUE
-//#define GDISP_HARDWARE_BITFILLS		TRUE
-//#define GDISP_HARDWARE_SCROLL			TRUE
+//#define GDISP_CONTROLLER_LIST				GDISPVMT_Win32, GDISPVMT_Win32
+//#define GDISP_CONTROLLER_DISPLAYS			1, 1
+//#define GDISP_PIXELFORMAT					GDISP_PIXELFORMAT_RGB888
 
 #endif /* _GFXCONF_H */
-- 
cgit v1.2.3