From 36924247cad0388ca5dd2704ef1f3a3103d7f52a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 20 Aug 2010 14:22:39 +0200 Subject: [PATCH] client: Use a surface for c:get_content() Signed-off-by: Uli Schlachter --- objects/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/client.c b/objects/client.c index 0b5590b4..c93b14b0 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1450,7 +1450,7 @@ luaA_client_get_content(lua_State *L, client_t *c) data[y * ximage->width + x] |= 0xff000000; /* set alpha to 0xff */ } - retval = image_new_from_argb32(L, ximage->width, ximage->height, data); + retval = luaA_surface_from_data(L, ximage->width, ximage->height, data); p_delete(&data); } xcb_image_destroy(ximage);