ecore-drm2: Add background_color to crtc atomic properties
This patch adds a new field to the crtc atomic state which will be used to support crtc background_color property, and also fills in that state during crtc atomic state fill. @feature
This commit is contained in:
parent
8e0c4d83ed
commit
d09664e20e
|
@ -268,7 +268,11 @@ _drm2_atomic_state_crtc_fill(Ecore_Drm2_Crtc_State *cstate, int fd)
|
|||
cstate->active.value = oprops->prop_values[i];
|
||||
DBG("\t\t\tValue: %d", cstate->active.value);
|
||||
}
|
||||
|
||||
else if (!strcmp(prop->name, "BACKGROUND_COLOR"))
|
||||
{
|
||||
cstate->background.id = prop->prop_id;
|
||||
cstate->background.value = oprops->prop_values[i];
|
||||
}
|
||||
cont:
|
||||
sym_drmModeFreeProperty(prop);
|
||||
}
|
||||
|
|
|
@ -91,6 +91,7 @@ typedef struct _Ecore_Drm2_Crtc_State
|
|||
uint32_t obj_id;
|
||||
int index;
|
||||
Ecore_Drm2_Atomic_Property active;
|
||||
Ecore_Drm2_Atomic_Property background;
|
||||
Ecore_Drm2_Atomic_Blob mode;
|
||||
} Ecore_Drm2_Crtc_State;
|
||||
|
||||
|
|
Loading…
Reference in New Issue