struct display *d;
int i;
- d = display_create(&argc, &argv, option_entries, NULL);
+ d = display_create(&argc, &argv, option_entries);
if (d == NULL) {
fprintf(stderr, "failed to create display: %m\n");
return -1;
int authenticated;
EGLDisplay dpy;
EGLConfig rgb_config;
- EGLConfig premul_argb_config;
+ EGLConfig premultiplied_argb_config;
EGLContext ctx;
cairo_device_t *device;
int fd;
if (flags & SURFACE_OPAQUE) {
config = display->rgb_config;
- attribps = NULL;
+ attribs = NULL;
} else {
config = display->premultiplied_argb_config;
attribs = premul_attribs;
}
}
- visual = display->premultiplied_argb_visual;
- surface = display_create_egl_image_surface(display, visual, rect);
+ surface = display_create_egl_image_surface(display, 0, rect);
if (surface == NULL) {
g_object_unref(pixbuf);
return NULL;
}
if (!eglChooseConfig(d->dpy, premul_argb_cfg_attribs,
- &d->premul_argb_config, 1, &n) || n != 1) {
+ &d->premultiplied_argb_config, 1, &n) || n != 1) {
fprintf(stderr, "failed to choose premul argb config\n");
return -1;
}