diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-10-13 22:52:42 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-11-06 10:51:59 -0500 |
commit | c508d93be27bdaf53fbb656e10a1d2ec15b94431 (patch) | |
tree | 4a1af395151b5c50303c9cfcd16f0d1ca2cd6b30 | |
parent | 23fceb1cf3ca0840a49e80a084d1299d0cf4520b (diff) |
Update for eagle changes.
-rw-r--r-- | egl-compositor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/egl-compositor.c b/egl-compositor.c index 09793b8..6f501e1 100644 --- a/egl-compositor.c +++ b/egl-compositor.c @@ -188,7 +188,7 @@ void notify_surface_attach(struct wl_compositor *compositor, pread.data_ptr = (long) data; if (ioctl(ec->gem_fd, DRM_IOCTL_I915_GEM_PREAD, &pread)) { - fprintf(stderr, "gem pread failed"); + fprintf(stderr, "gem pread failed\n"); return; } @@ -235,7 +235,7 @@ wl_compositor_create(struct wl_display *display) EGLConfig configs[64]; EGLint major, minor, count; struct egl_compositor *ec; - int width, height; + const int width = 1024, height = 768; ec = malloc(sizeof *ec); if (ec == NULL) @@ -244,7 +244,7 @@ wl_compositor_create(struct wl_display *display) ec->base.interface = &interface; ec->wl_display = display; - ec->display = eglCreateDisplay(gem_device, "i965"); + ec->display = eglCreateDisplayNative(gem_device, "i965"); if (ec->display == NULL) { fprintf(stderr, "failed to create display\n"); return NULL; @@ -260,7 +260,8 @@ wl_compositor_create(struct wl_display *display) return NULL; } - ec->surface = eglGetFullscreenSurface(ec->display, configs[24], &width, &height); + ec->surface = eglCreateSurfaceNative(ec->display, configs[24], + 0, 0, width, height); if (ec->surface == NULL) { fprintf(stderr, "failed to create surface\n"); return NULL; |