From 6968fb3123e69f563cd01d472967a9e6ddca2ec1 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 13 Nov 2019 11:23:36 -0700 Subject: add scale_filter output config option --- include/sway/config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/sway/config.h') diff --git a/include/sway/config.h b/include/sway/config.h index ed542790..9a00ccb5 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -204,6 +204,13 @@ enum config_dpms { DPMS_OFF }; +enum scale_filter_mode { + SCALE_FILTER_DEFAULT, // the default is currently smart + SCALE_FILTER_LINEAR, + SCALE_FILTER_NEAREST, + SCALE_FILTER_SMART +}; + /** * Size and position configuration for a particular output. * @@ -217,6 +224,7 @@ struct output_config { int custom_mode; int x, y; float scale; + enum scale_filter_mode scale_filter; int32_t transform; enum wl_output_subpixel subpixel; int max_render_time; // In milliseconds @@ -655,6 +663,8 @@ int output_name_cmp(const void *item, const void *data); void output_get_identifier(char *identifier, size_t len, struct sway_output *output); +const char *sway_output_scale_filter_to_string(enum scale_filter_mode scale_filter); + struct output_config *new_output_config(const char *name); void merge_output_config(struct output_config *dst, struct output_config *src); -- cgit v1.2.3-54-g00ecf