store output subpixel value to randr2 screen data during drm init
This commit is contained in:
parent
d9c03f1059
commit
773122db66
|
@ -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.x, screen->config.geom.y,
|
||||||
screen->config.geom.w, screen->config.geom.h,
|
screen->config.geom.w, screen->config.geom.h,
|
||||||
screen->info.size.w, screen->info.size.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);
|
ERR("Could not initialize screen %s", screen->info.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ struct _E_Randr2_Screen
|
||||||
char *name; // name of the output itself
|
char *name; // name of the output itself
|
||||||
char *edid; // full edid data
|
char *edid; // full edid data
|
||||||
E_Randr2_Connector connector; // the connector type
|
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 is_lid : 1; // is an internal screen
|
||||||
Eina_Bool lid_closed : 1; // is lid closed when screen qury'd
|
Eina_Bool lid_closed : 1; // is lid closed when screen qury'd
|
||||||
Eina_Bool connected : 1; // some screen is plugged in or not
|
Eina_Bool connected : 1; // some screen is plugged in or not
|
||||||
|
|
|
@ -368,6 +368,7 @@ _drm2_randr_create(void)
|
||||||
s->info.lid_closed, s->info.is_lid, e_acpi_lid_is_closed());
|
s->info.lid_closed, s->info.is_lid, e_acpi_lid_is_closed());
|
||||||
|
|
||||||
s->info.backlight = ecore_drm2_output_backlight_get(output);
|
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,
|
ecore_drm2_output_physical_size_get(output, &s->info.size.w,
|
||||||
&s->info.size.h);
|
&s->info.size.h);
|
||||||
|
|
Loading…
Reference in New Issue