commit 9861fa1

Michael Forney  ·  2014-01-31 23:27:54 +0000 UTC
parent acf7730
Adapt to wld changes
2 files changed,  +5, -3
+3, -2
 1@@ -229,7 +229,8 @@ static struct screen * screen_new(struct swc_screen_internal * base)
 2     screen->surface = wld_create_surface(swc.drm->context,
 3                                          base->base.geometry.width,
 4                                          base->base.geometry.height,
 5-                                         WLD_FORMAT_XRGB8888);
 6+                                         WLD_FORMAT_XRGB8888,
 7+                                         WLD_DRM_FLAG_SCANOUT);
 8 
 9     if (!screen->surface)
10         goto error1;
11@@ -355,7 +356,7 @@ static bool renderer_attach(struct view * view, struct swc_buffer * buffer)
12                 DEBUG("Creating a proxy buffer\n");
13                 wld = wld_create_buffer(swc.drm->context,
14                                         buffer->wld->width, buffer->wld->height,
15-                                        buffer->wld->format);
16+                                        buffer->wld->format, WLD_FLAG_MAP);
17 
18                 if (!wld)
19                     return false;
+2, -1
 1@@ -227,7 +227,8 @@ bool swc_pointer_initialize(struct swc_pointer * pointer)
 2                   &pointer->cursor.view_listener);
 3     pointer->cursor.surface = NULL;
 4     pointer->cursor.destroy_listener.notify = &handle_cursor_surface_destroy;
 5-    buffer = wld_create_buffer(swc.drm->context, 64, 64, WLD_FORMAT_ARGB8888);
 6+    buffer = wld_create_buffer(swc.drm->context, 64, 64, WLD_FORMAT_ARGB8888,
 7+                               WLD_FLAG_MAP);
 8 
 9     if (!buffer)
10         return false;