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:
parent
d89a0946a7
commit
3c2e66bb6c
@ -1565,6 +1565,9 @@ x11_compositor_create(struct wl_display *display,
|
||||
height = option_height;
|
||||
|
||||
weston_config_section_get_int(section, "scale", &scale, 1);
|
||||
if (option_scale)
|
||||
scale = option_scale;
|
||||
|
||||
weston_config_section_get_string(section,
|
||||
"transform", &t, "normal");
|
||||
transform = parse_transform(t, name);
|
||||
|
Loading…
Reference in New Issue
Block a user