x11-backend: Override scale from weston.ini if --scale is passed
This matches our behavior for width and height, and is useful for launching weston with a different scale factor without editing the .ini file.
This commit is contained in:
@@ -1565,6 +1565,9 @@ x11_compositor_create(struct wl_display *display,
|
|||||||
height = option_height;
|
height = option_height;
|
||||||
|
|
||||||
weston_config_section_get_int(section, "scale", &scale, 1);
|
weston_config_section_get_int(section, "scale", &scale, 1);
|
||||||
|
if (option_scale)
|
||||||
|
scale = option_scale;
|
||||||
|
|
||||||
weston_config_section_get_string(section,
|
weston_config_section_get_string(section,
|
||||||
"transform", &t, "normal");
|
"transform", &t, "normal");
|
||||||
transform = parse_transform(t, name);
|
transform = parse_transform(t, name);
|
||||||
|
|||||||
Reference in New Issue
Block a user