From 9ade689ca00e0eaecff9b7737adc65f545ea0ab6 Mon Sep 17 00:00:00 2001 From: DerVerruckteFuchs Date: Wed, 22 Apr 2020 21:39:00 -0400 Subject: [PATCH] add prototype function for wlr_output_set_format() and add the wl_shm_format enum to the wlr_output struct --- include/wlr/types/wlr_output.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 075d09a1f..5fcdbaaaf 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -138,6 +138,7 @@ struct wlr_output { bool enabled; float scale; enum wl_output_subpixel subpixel; + enum wl_shm_format format; enum wl_output_transform transform; enum wlr_output_adaptive_sync_status adaptive_sync_status; @@ -286,6 +287,12 @@ void wlr_output_set_scale(struct wlr_output *output, float scale); void wlr_output_set_subpixel(struct wlr_output *output, enum wl_output_subpixel subpixel); void wlr_output_set_description(struct wlr_output *output, const char *desc); +/** + * Set the color format mode for the output. + * + */ +void wlr_output_set_format(struct wlr_output *output, + enum wl_shm_format format); /** * Schedule a done event. *