diff options
author | Melissa Wen <melissa.srw@gmail.com> | 2020-07-06 12:50:59 -0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-07-07 17:57:46 +0300 |
commit | 90254c14f4e68bec9d4a114ddf039075f3c1a30c (patch) | |
tree | e50702df13c197cb7713cb6df9a6d38ffe12335e /tests/testdisplay.c | |
parent | 5da80efbc7a2d5bd7b30c0f9eb4b5d001c99b558 (diff) |
lib/igt_fb: remove extra parameters from igt_put_cairo_ctx
The function igt_put_cairo_ctx currently requires three parameters, but only
one of them is used in it. This patch removes the useless parameters, making
the code more readable and cohesive. It also applies the change to all
occurrences of the function in the code.
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 5e2c4598..ef033dc6 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -232,7 +232,7 @@ paint_color_key(struct igt_fb *fb_info) cairo_set_source_rgb(cr, .8, .8, .8); cairo_fill(cr); - igt_put_cairo_ctx(drm_fd, fb_info, cr); + igt_put_cairo_ctx(cr); } static void paint_image(cairo_t *cr, const char *file) @@ -317,7 +317,7 @@ static void paint_output_info(struct connector *c, struct igt_fb *fb) if (qr_code) paint_image(cr, "pass.png"); - igt_put_cairo_ctx(drm_fd, fb, cr); + igt_put_cairo_ctx(cr); } static void sighandler(int signo) |