aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-11-10 22:54:04 -0500
committerSimon Ser <contact@emersion.fr>2021-11-19 15:51:46 +0000
commit7508f87fcbfa8c9feb72fcd38f323113059c1b83 (patch)
tree4b4473f7f7b343df43a983b873c1612c37ef69e9 /include
parentee210758fca4182e1ba3a37051fb3d7eec099da4 (diff)
output: lift up output format fallback logic
This makes it possible for the two functions using output_pick_format (output_pick_cursor_format and output_create_swapchain) to select different buffer formats.
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h
index cde64e3a..1159d00a 100644
--- a/include/types/wlr_output.h
+++ b/include/types/wlr_output.h
@@ -8,7 +8,7 @@ void output_pending_resolution(struct wlr_output *output, int *width,
int *height);
struct wlr_drm_format *output_pick_format(struct wlr_output *output,
- const struct wlr_drm_format_set *display_formats);
+ const struct wlr_drm_format_set *display_formats, uint32_t format);
void output_clear_back_buffer(struct wlr_output *output);
bool output_ensure_buffer(struct wlr_output *output);