summaryrefslogtreecommitdiff
path: root/include/cd_private.h
diff options
context:
space:
mode:
authorscuri <scuri>2011-04-25 18:26:50 +0000
committerscuri <scuri>2011-04-25 18:26:50 +0000
commit064e6b53faec08a67075dd0f97303f5365d4e79b (patch)
tree482d496b90975c7576de91ef0a89a58f96993612 /include/cd_private.h
parent070d6122a997dfdc932c2ec2b3f547a6c8edef54 (diff)
*** empty log message ***
Diffstat (limited to 'include/cd_private.h')
-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 */