summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-01 08:40:14 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-18 07:21:39 -0400
commitd09664e20efeb59ededa4de3a9104bdd3b19dba5 (patch)
tree367c99ed4819022c50ae2d12ca2783bc38d8cd5f /src/lib/ecore_drm2/ecore_drm2_device.c
parent8e0c4d83edd49063fcd0f214168710e0991e9475 (diff)
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
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index b4ca722b22..46d0f94119 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -268,7 +268,11 @@ _drm2_atomic_state_crtc_fill(Ecore_Drm2_Crtc_State *cstate, int fd)
268 cstate->active.value = oprops->prop_values[i]; 268 cstate->active.value = oprops->prop_values[i];
269 DBG("\t\t\tValue: %d", cstate->active.value); 269 DBG("\t\t\tValue: %d", cstate->active.value);
270 } 270 }
271 271 else if (!strcmp(prop->name, "BACKGROUND_COLOR"))
272 {
273 cstate->background.id = prop->prop_id;
274 cstate->background.value = oprops->prop_values[i];
275 }
272cont: 276cont:
273 sym_drmModeFreeProperty(prop); 277 sym_drmModeFreeProperty(prop);
274 } 278 }