mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 08:48:00 +02:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue