diff options
author | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
---|---|---|
committer | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
commit | 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 (patch) | |
tree | f377bae28d0cae28aa0f9ea32442bee56e1f6135 /src/gdk | |
parent | 0daf9f7ba7b50fea5c9764cf0dc05ad76c005716 (diff) |
New: functions cdContextIsPlus and cdContextType.
Diffstat (limited to 'src/gdk')
-rw-r--r-- | src/gdk/cdgdkclp.c | 1 | ||||
-rw-r--r-- | src/gdk/cdgdkdbuf.c | 3 | ||||
-rw-r--r-- | src/gdk/cdgdkimg.c | 3 | ||||
-rw-r--r-- | src/gdk/cdgdknative.c | 5 |
4 files changed, 8 insertions, 4 deletions
diff --git a/src/gdk/cdgdkclp.c b/src/gdk/cdgdkclp.c index c6557b9..e861b5e 100644 --- a/src/gdk/cdgdkclp.c +++ b/src/gdk/cdgdkclp.c @@ -122,6 +122,7 @@ static cdContext cdClipboardContext = { CD_CAP_ALL & ~(CD_CAP_GETIMAGERGB | CD_CAP_IMAGESRV | CD_CAP_FONTDIM | CD_CAP_TEXTSIZE ), /* same as CD_MF */ 0, + CD_CTX_DEVICE, cdcreatecanvas, cdinittable, cdplay, diff --git a/src/gdk/cdgdkdbuf.c b/src/gdk/cdgdkdbuf.c index 50a93a5..3df8ec3 100644 --- a/src/gdk/cdgdkdbuf.c +++ b/src/gdk/cdgdkdbuf.c @@ -129,6 +129,7 @@ static cdContext cdDBufferContext = { CD_CAP_ALL & ~(CD_CAP_PLAY | CD_CAP_YAXIS | CD_CAP_PATH | CD_CAP_BEZIER | CD_CAP_FPRIMTIVES ), 0, + CD_CTX_IMAGE, cdcreatecanvas, cdinittable, NULL, @@ -139,7 +140,7 @@ cdContext* cdContextDBuffer(void) { if (cdUseContextPlus(CD_QUERY)) { - cdContext* ctx = cdGetContextPlus(CD_CTX_DBUFFER); + cdContext* ctx = cdGetContextPlus(CD_CTXPLUS_DBUFFER); if (ctx != NULL) return ctx; } diff --git a/src/gdk/cdgdkimg.c b/src/gdk/cdgdkimg.c index 4b4475b..aab9a1b 100644 --- a/src/gdk/cdgdkimg.c +++ b/src/gdk/cdgdkimg.c @@ -32,6 +32,7 @@ static cdContext cdImageContext = { CD_CAP_ALL & ~(CD_CAP_PLAY | CD_CAP_YAXIS | CD_CAP_FPRIMTIVES | CD_CAP_PATH | CD_CAP_BEZIER ), 0, + CD_CTX_IMAGE, cdcreatecanvas, cdinittable, NULL, @@ -43,7 +44,7 @@ cdContext* cdContextImage(void) { if (cdUseContextPlus(CD_QUERY)) { - cdContext* ctx = cdGetContextPlus(CD_CTX_IMAGE); + cdContext* ctx = cdGetContextPlus(CD_CTXPLUS_IMAGE); if (ctx != NULL) return ctx; } diff --git a/src/gdk/cdgdknative.c b/src/gdk/cdgdknative.c index 8865d7e..8e66dbe 100644 --- a/src/gdk/cdgdknative.c +++ b/src/gdk/cdgdknative.c @@ -96,7 +96,8 @@ static void cdinittable(cdCanvas* canvas) static cdContext cdNativeWindowContext = { CD_CAP_ALL & ~(CD_CAP_PLAY | CD_CAP_YAXIS | CD_CAP_FPRIMTIVES | CD_CAP_PATH | CD_CAP_BEZIER ), - 1, + 0, + CD_CTX_WINDOW, cdcreatecanvas, cdinittable, NULL, @@ -108,7 +109,7 @@ cdContext* cdContextNativeWindow(void) { if (cdUseContextPlus(CD_QUERY)) { - cdContext* ctx = cdGetContextPlus(CD_CTX_NATIVEWINDOW); + cdContext* ctx = cdGetContextPlus(CD_CTXPLUS_NATIVEWINDOW); if (ctx != NULL) return ctx; } |