store output subpixel value to randr2 screen data during drm init

This commit is contained in:
Mike Blumenkrantz 2017-06-16 14:59:42 -04:00
parent d9c03f1059
commit 773122db66
3 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

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