tests: Use buffer for width/height in color-effects

We don't need a pixman_image to get the buffer width and height, so
don't use it.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2025-10-11 10:12:59 +01:00 committed by Pekka Paalanen
parent 2c5dd92533
commit 087315e242

View file

@ -152,8 +152,8 @@ TEST(color_effects)
* with color effects, but let's make the test run faster) */
clip.x = 0;
clip.y = 0;
clip.width = pixman_image_get_width(buffer->image);
clip.height = pixman_image_get_height(buffer->image);
clip.width = buffer->buf->width;
clip.height = buffer->buf->height;
verify_image(screenshot->image, arg->ref_image_prefix, seq_no, &clip, seq_no);
buffer_destroy(screenshot);