mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 21:38:04 +02:00
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:
parent
2c5dd92533
commit
087315e242
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue