diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-10-16 01:39:56 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-10-16 01:39:56 +1000 |
commit | 86a57349128197f58cf3f103e9adf9c2c348d418 (patch) | |
tree | 7741e787d72b6298090d8a422baccdcf5e9619e4 /demos | |
parent | 3b8c57255247a8774fa03ce259b9f8640488a1f9 (diff) | |
download | uGFX-86a57349128197f58cf3f103e9adf9c2c348d418.tar.gz uGFX-86a57349128197f58cf3f103e9adf9c2c348d418.tar.bz2 uGFX-86a57349128197f58cf3f103e9adf9c2c348d418.zip |
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.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/modules/gdisp/gdisp_multiple_displays/gfxconf.h | 39 |
1 files changed, 26 insertions, 13 deletions
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 */ |