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.
dev
Kristian Høgsberg 11 years ago
parent d89a0946a7
commit 3c2e66bb6c
  1. 3
      src/compositor-x11.c

@ -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…
Cancel
Save