commit 9861fa128da1617cb4d1c6ab1d760e30740684fa
parent acf773022535b271d7e0060f513658e7b69afbfe
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 31 Jan 2014 15:27:54 -0800
Adapt to wld changes
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/libswc/compositor.c b/libswc/compositor.c
@@ -229,7 +229,8 @@ static struct screen * screen_new(struct swc_screen_internal * base)
screen->surface = wld_create_surface(swc.drm->context,
base->base.geometry.width,
base->base.geometry.height,
- WLD_FORMAT_XRGB8888);
+ WLD_FORMAT_XRGB8888,
+ WLD_DRM_FLAG_SCANOUT);
if (!screen->surface)
goto error1;
@@ -355,7 +356,7 @@ static bool renderer_attach(struct view * view, struct swc_buffer * buffer)
DEBUG("Creating a proxy buffer\n");
wld = wld_create_buffer(swc.drm->context,
buffer->wld->width, buffer->wld->height,
- buffer->wld->format);
+ buffer->wld->format, WLD_FLAG_MAP);
if (!wld)
return false;
diff --git a/libswc/pointer.c b/libswc/pointer.c
@@ -227,7 +227,8 @@ bool swc_pointer_initialize(struct swc_pointer * pointer)
&pointer->cursor.view_listener);
pointer->cursor.surface = NULL;
pointer->cursor.destroy_listener.notify = &handle_cursor_surface_destroy;
- buffer = wld_create_buffer(swc.drm->context, 64, 64, WLD_FORMAT_ARGB8888);
+ buffer = wld_create_buffer(swc.drm->context, 64, 64, WLD_FORMAT_ARGB8888,
+ WLD_FLAG_MAP);
if (!buffer)
return false;