client: Use a surface for c:get_content()

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-20 14:22:39 +02:00
parent 146a5dd67c
commit 36924247ca
1 changed files with 1 additions and 1 deletions

View File

@ -1450,7 +1450,7 @@ luaA_client_get_content(lua_State *L, client_t *c)
data[y * ximage->width + x] |= 0xff000000; /* set alpha to 0xff */ 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); p_delete(&data);
} }
xcb_image_destroy(ximage); xcb_image_destroy(ximage);