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/kms_plane_cursor.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/kms_plane_cursor.c')
-rw-r--r-- | tests/kms_plane_cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c index adcdf5e8..f7d50484 100644 --- a/tests/kms_plane_cursor.c +++ b/tests/kms_plane_cursor.c @@ -102,7 +102,7 @@ static void draw_color(igt_fb_t *fb, double r, double g, double b) cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); igt_paint_color(cr, 0, 0, fb->width, fb->height, r, g, b); - igt_put_cairo_ctx(fb->fd, fb, cr); + igt_put_cairo_ctx(cr); } /* @@ -129,7 +129,7 @@ static void test_cursor_pos(data_t *data, igt_fb_t *pfb, igt_fb_t *ofb, igt_paint_color(cr, or->x, or->y, or->w, or->h, 0.5, 0.5, 0.5); igt_paint_color(cr, x, y, cw, ch, 1.0, 0.0, 1.0); - igt_put_cairo_ctx(pfb->fd, pfb, cr); + igt_put_cairo_ctx(cr); igt_plane_set_fb(data->overlay, NULL); igt_plane_set_fb(data->cursor, NULL); |