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:
Kristian Høgsberg 2014-03-10 13:41:35 -07:00
parent d89a0946a7
commit 3c2e66bb6c

View File

@ -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);