mirror of
https://github.com/swaywm/sway.git
synced 2025-11-18 06:59:48 -05:00
add scale_filter output config option
This commit is contained in:
parent
4b57953628
commit
6968fb3123
13 changed files with 131 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue