From 435fea5017d7a655ddb13f7897bfd628c9a5e6fb Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 21 Sep 2017 15:42:15 +0300 Subject: tests/kms_panel_fitting: Use igt_cairo_image_surface_create_from_png_file() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch to using igt_cairo_image_surface_create_from_png_file() over the raw cairo version so that the test can actually find the image file no matter where we run it from. Signed-off-by: Ville Syrjälä Reviewed-by: Petri Latvala --- tests/kms_panel_fitting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_panel_fitting.c') diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c index e145a2df..5266862a 100644 --- a/tests/kms_panel_fitting.c +++ b/tests/kms_panel_fitting.c @@ -159,7 +159,7 @@ static void test_panel_fitting(data_t *d) native_mode = *mode; /* allocate fb2 with image size */ - image = cairo_image_surface_create_from_png(FILE_NAME); + image = igt_cairo_image_surface_create_from_png(FILE_NAME); igt_assert(cairo_surface_status(image) == CAIRO_STATUS_SUCCESS); d->image_w = cairo_image_surface_get_width(image); d->image_h = cairo_image_surface_get_height(image); -- cgit v1.2.3