compositor: add weston.ini option to enable color management
This new option allows loading the color-lcms plugin. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
5e79dd4892
commit
c87fa24059
@@ -1086,6 +1086,7 @@ weston_compositor_init_config(struct weston_compositor *ec,
|
||||
struct xkb_rule_names xkb_names;
|
||||
struct weston_config_section *s;
|
||||
int repaint_msec;
|
||||
bool color_management;
|
||||
bool cal;
|
||||
|
||||
/* weston.ini [keyboard] */
|
||||
@@ -1125,6 +1126,13 @@ weston_compositor_init_config(struct weston_compositor *ec,
|
||||
weston_log("Output repaint window is %d ms maximum.\n",
|
||||
ec->repaint_msec);
|
||||
|
||||
weston_config_section_get_bool(s, "color-management",
|
||||
&color_management, false);
|
||||
if (color_management) {
|
||||
if (weston_compositor_load_color_manager(ec) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* weston.ini [libinput] */
|
||||
s = weston_config_get_section(config, "libinput", NULL, NULL);
|
||||
weston_config_section_get_bool(s, "touchscreen_calibrator", &cal, 0);
|
||||
|
||||
Reference in New Issue
Block a user