From b68cfa0c2978eff6eb4362d94da3b53f9b37e6b9 Mon Sep 17 00:00:00 2001 From: inmarket Date: Tue, 13 Jan 2015 14:28:56 +1000 Subject: Support dynamic displays at compile time, don't re-orient pixmaps at initialisation time. --- src/gdisp/driver.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gdisp/driver.h') 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" { -- cgit v1.2.3