From 773122db665a666a40e37e62e1eb4467419a1296 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 16 Jun 2017 14:59:42 -0400 Subject: [PATCH] store output subpixel value to randr2 screen data during drm init --- src/bin/e_comp_wl.c | 2 +- src/bin/e_randr2.h | 1 + src/modules/wl_drm/e_mod_main.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index a9dcc4f4a..f1103a970 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1154,7 +1154,7 @@ _e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type EINA_UNUSED, void *e screen->config.geom.x, screen->config.geom.y, screen->config.geom.w, screen->config.geom.h, screen->info.size.w, screen->info.size.h, - screen->config.mode.refresh, 0, transform, 0)) + screen->config.mode.refresh, screen->info.subpixel, transform, 0)) ERR("Could not initialize screen %s", screen->info.name); } diff --git a/src/bin/e_randr2.h b/src/bin/e_randr2.h index 558bf4eed..549c32924 100644 --- a/src/bin/e_randr2.h +++ b/src/bin/e_randr2.h @@ -58,6 +58,7 @@ struct _E_Randr2_Screen char *name; // name of the output itself char *edid; // full edid data E_Randr2_Connector connector; // the connector type + unsigned int subpixel; //ecore_drm2_output_subpixel_get Eina_Bool is_lid : 1; // is an internal screen Eina_Bool lid_closed : 1; // is lid closed when screen qury'd Eina_Bool connected : 1; // some screen is plugged in or not diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index 7f067c8f2..afce6cf66 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -368,6 +368,7 @@ _drm2_randr_create(void) s->info.lid_closed, s->info.is_lid, e_acpi_lid_is_closed()); s->info.backlight = ecore_drm2_output_backlight_get(output); + s->info.subpixel = ecore_drm2_output_subpixel_get(output); ecore_drm2_output_physical_size_get(output, &s->info.size.w, &s->info.size.h);