summaryrefslogtreecommitdiff
path: root/src/gdk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdk')
-rw-r--r--src/gdk/cdgdkclp.c1
-rw-r--r--src/gdk/cdgdkdbuf.c3
-rw-r--r--src/gdk/cdgdkimg.c3
-rw-r--r--src/gdk/cdgdknative.c5
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;
}