summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cd_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cd_private.h b/include/cd_private.h
index 672d23c..92d378b 100644
--- a/include/cd_private.h
+++ b/include/cd_private.h
@@ -68,8 +68,7 @@ struct _cdImage
struct _cdContext
{
unsigned long caps; /* canvas capabilities, combination of CD_CAP_* */
- int plus; /* indicates if the context is a context plus */
- int type; /* context type WINDOW, DEVICE, IMAGE or FILE */
+ int type; /* context type WINDOW, DEVICE, IMAGE or FILE, combined with PLUS */
/* can NOT be NULL */
void (*cxCreateCanvas)(cdCanvas* canvas, void *data);
@@ -264,7 +263,8 @@ void wdSetDefaults(cdCanvas* canvas);
void cdInitContextPlusList(cdContext* ctx_list[]);
cdContext* cdGetContextPlus(int ctx);
enum{CD_CTXPLUS_NATIVEWINDOW, CD_CTXPLUS_IMAGE, CD_CTXPLUS_DBUFFER, CD_CTXPLUS_PRINTER, CD_CTXPLUS_EMF, CD_CTXPLUS_CLIPBOARD};
-#define NUM_CONTEXTPLUS 6
+#define CD_CTXPLUS_COUNT 6
+#define CD_CTX_PLUS 0xFF00 /* to combine with context type */
/*************/
/* utilities */