[client] egl: add option to set initial scale algorithm

The option is egl:scale. The scale algorithm number is displayed on the
alert to make it easier to specify the number for the option.
This commit is contained in:
Quantum
2021-02-22 00:03:50 -05:00
committed by Geoffrey McRae
parent 0512c88ea8
commit 30b5287c38
3 changed files with 26 additions and 4 deletions

View File

@@ -152,6 +152,14 @@ static struct Option egl_options[] =
.type = OPTION_TYPE_INT,
.value.x_int = 0
},
{
.module = "egl",
.name = "scale",
.description = "Set the scale algorithm (0 = auto, 1 = nearest, 2 = linear)",
.type = OPTION_TYPE_INT,
.validator = egl_desktop_scale_validate,
.value.x_int = 0
},
{0}
};