diff options
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 { | |||
204 | DPMS_OFF | 204 | DPMS_OFF |
205 | }; | 205 | }; |
206 | 206 | ||
207 | enum scale_filter_mode { | ||
208 | SCALE_FILTER_DEFAULT, // the default is currently smart | ||
209 | SCALE_FILTER_LINEAR, | ||
210 | SCALE_FILTER_NEAREST, | ||
211 | SCALE_FILTER_SMART | ||
212 | }; | ||
213 | |||
207 | /** | 214 | /** |
208 | * Size and position configuration for a particular output. | 215 | * Size and position configuration for a particular output. |
209 | * | 216 | * |
@@ -217,6 +224,7 @@ struct output_config { | |||
217 | int custom_mode; | 224 | int custom_mode; |
218 | int x, y; | 225 | int x, y; |
219 | float scale; | 226 | float scale; |
227 | enum scale_filter_mode scale_filter; | ||
220 | int32_t transform; | 228 | int32_t transform; |
221 | enum wl_output_subpixel subpixel; | 229 | enum wl_output_subpixel subpixel; |
222 | int max_render_time; // In milliseconds | 230 | int max_render_time; // In milliseconds |
@@ -655,6 +663,8 @@ int output_name_cmp(const void *item, const void *data); | |||
655 | void output_get_identifier(char *identifier, size_t len, | 663 | void output_get_identifier(char *identifier, size_t len, |
656 | struct sway_output *output); | 664 | struct sway_output *output); |
657 | 665 | ||
666 | const char *sway_output_scale_filter_to_string(enum scale_filter_mode scale_filter); | ||
667 | |||
658 | struct output_config *new_output_config(const char *name); | 668 | struct output_config *new_output_config(const char *name); |
659 | 669 | ||
660 | void merge_output_config(struct output_config *dst, struct output_config *src); | 670 | void merge_output_config(struct output_config *dst, struct output_config *src); |