From 96710a595ed5c910476d9f853e1ef9a8acd5b6ae Mon Sep 17 00:00:00 2001 From: Aire-One Date: Tue, 12 Oct 2021 20:56:10 +0200 Subject: [PATCH] fix(root) copy_to_image_surface parameters --- tests/test-screenshot.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-screenshot.lua b/tests/test-screenshot.lua index e87446c30..8d7c2f1da 100644 --- a/tests/test-screenshot.lua +++ b/tests/test-screenshot.lua @@ -105,8 +105,9 @@ local steps = {} -- Check the whole root window. table.insert(steps, function() - local img = copy_to_image_surface(root.content(), root.size()) local root_width, root_height = root.size() + local img = copy_to_image_surface(capi.root.content(), root_width, + root_height) if get_pixel(img, 100, 100) ~= "#00ff00" then return end if get_pixel(img, 2, 2) ~= "#ff0000" then return end