summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cairogears.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cairogears.c b/cairogears.c
index 62e64af..07b222c 100644
--- a/cairogears.c
+++ b/cairogears.c
@@ -109,7 +109,7 @@ alarmhandler (int sig)
alarm(5);
}
-static cairo_gl_context_t *
+static cairo_device_t *
cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
{
int attribs[] = { GLX_RGBA,
@@ -121,7 +121,7 @@ cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
None };
GLXContext gl_ctx;
XVisualInfo *visinfo;
- cairo_gl_context_t *ctx;
+ cairo_device_t *ctx;
visinfo = glXChooseVisual (dpy, DefaultScreen (dpy), attribs);
if (visinfo == NULL) {
@@ -134,7 +134,7 @@ cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
XFree(visinfo);
- ctx = cairo_glx_context_create (dpy, gl_ctx);
+ ctx = cairo_glx_device_create (dpy, gl_ctx);
return ctx;
}
@@ -168,7 +168,7 @@ main (int argc, char **argv)
unsigned int width, height, window_width, window_height;
cairo_surface_t *win_surface;
cairo_surface_t *surface;
- cairo_gl_context_t *ctx = NULL;
+ cairo_device_t *ctx = NULL;
cairo_t *cr;
int i;