aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdisp/driver.h')
-rw-r--r--src/gdisp/driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gdisp/driver.h b/src/gdisp/driver.h
index db626a69..efcb2872 100644
--- a/src/gdisp/driver.h
+++ b/src/gdisp/driver.h
@@ -377,6 +377,8 @@ struct GDisplay {
typedef struct GDISPVMT {
GDriverVMT d;
+ #define GDISP_VFLG_DYNAMICONLY 0x0001 // This display should never be statically initialised
+ #define GDISP_VFLG_PIXMAP 0x0002 // This is a pixmap display
bool_t (*init)(GDisplay *g);
void (*deinit)(GDisplay *g);
void (*writestart)(GDisplay *g); // Uses p.x,p.y p.cx,p.cy
@@ -709,6 +711,11 @@ typedef struct GDISPVMT {
#define GDISP_DRIVER_VMT GDISPVMT_OnlyOne
#endif
+ // Default the flags if the driver doesn't specify any
+ #ifndef GDISP_DRIVER_VMT_FLAGS
+ #define GDISP_DRIVER_VMT_FLAGS 0
+ #endif
+
// Routines needed by the general driver VMT
#ifdef __cplusplus
extern "C" {