From 391410deb5c6dc6fbfa75b593cefcca88376168f Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Sun, 21 Jan 2024 09:49:34 -0500 Subject: [PATCH] wlr_scene: add color transform argument for rendering --- include/wlr/types/wlr_scene.h | 1 + types/scene/wlr_scene.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 37abd20f..2f57ecfc 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -469,6 +469,7 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output, struct wlr_scene_output_state_options { struct wlr_scene_timer *timer; + struct wlr_color_transform *color_transform; /** * Allows use of a custom swapchain. This can be useful when trying out an diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index cd03ea37..78c322d4 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1861,6 +1861,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(output->renderer, buffer, &(struct wlr_buffer_pass_options){ .timer = timer ? timer->render_timer : NULL, + .color_transform = options->color_transform, }); if (render_pass == NULL) { wlr_buffer_unlock(buffer);