2013-02-11 08:25:45 +00:00
|
|
|
To use this driver:
|
|
|
|
|
2013-10-17 04:55:10 +00:00
|
|
|
This driver is special in that it implements both the gdisp low level driver,
|
|
|
|
optionally a touchscreen driver, and optionally a toggle driver.
|
2013-02-11 08:25:45 +00:00
|
|
|
|
2013-06-20 22:02:54 +00:00
|
|
|
1. Add in your gfxconf.h:
|
2013-02-11 08:25:45 +00:00
|
|
|
a) #define GFX_USE_GDISP TRUE
|
2013-10-17 04:55:10 +00:00
|
|
|
b) Optionally #define GFX_USE_GINPUT TRUE
|
|
|
|
#define GINPUT_USE_MOUSE TRUE
|
|
|
|
#define GINPUT_USE_TOGGLE TRUE
|
2013-02-11 08:25:45 +00:00
|
|
|
c) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD
|
2013-10-17 04:55:10 +00:00
|
|
|
d) Optionally the following (with appropriate values):
|
2013-02-11 08:25:45 +00:00
|
|
|
#define GDISP_SCREEN_WIDTH 640
|
|
|
|
#define GDISP_SCREEN_HEIGHT 480
|
|
|
|
|
|
|
|
|
|
|
|
2. To your makefile add the following lines:
|
|
|
|
include $(GFXLIB)/gfx.mk
|
2014-07-23 16:20:54 +00:00
|
|
|
include $(GFXLIB)/drivers/multiple/Win32/driver.mk
|
|
|
|
|
|
|
|
However, consider using the Win32 board file instead as this does include all
|
|
|
|
the possible drivers that can be used (eg. for the GAUDIO module) by using:
|
|
|
|
|
|
|
|
include $(GFXLIB)/gfx.mk
|
|
|
|
include $(GFXLIB)/boards/base/Win32/board.mk
|
|
|
|
|
2013-02-11 08:25:45 +00:00
|
|
|
|
2013-10-17 04:55:10 +00:00
|
|
|
3. Modify your makefile to add -lws2_32 and -lgdi32 to the DLIBS line. i.e.
|
2013-02-11 08:25:45 +00:00
|
|
|
DLIBS = -lws2_32 -lgdi32
|