commit 9f7d7fc

Michael Forney  ·  2017-02-06 19:48:21 +0000 UTC
parent 160ebbf
pointer: Blank the cursor if wld_import_buffer failed
1 files changed,  +2, -6
+2, -6
 1@@ -145,12 +145,8 @@ pointer_set_cursor(struct pointer *pointer, uint32_t id)
 2 
 3 	buffer = wld_import_buffer(swc.shm->context, WLD_OBJECT_DATA, object,
 4 	                           cursor->width, cursor->height, WLD_FORMAT_ARGB8888, cursor->width * 4);
 5-
 6-	if (!buffer) {
 7-		ERROR("Failed to create cursor buffer\n");
 8-		return;
 9-	}
10-
11+	if (!buffer)
12+		WARNING("Failed to create cursor buffer\n");
13 	pointer->cursor.internal_buffer = buffer;
14 	pointer->cursor.hotspot.x = cursor->hotspot_x;
15 	pointer->cursor.hotspot.y = cursor->hotspot_y;