diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-04-01 08:41:38 -0400 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-04-18 07:21:39 -0400 |
commit | edd78d18006e94d7fa9bd553bb49d2e4becddd6d (patch) | |
tree | 2a79208748fbbc7cff1110544260816755071b67 /src/lib/ecore_drm2/ecore_drm2_outputs.c | |
parent | d09664e20efeb59ededa4de3a9104bdd3b19dba5 (diff) |
ecore-drm2: Fill in crtc background color (if supported) during atomic
commits
Small patch to add the crtc background_color property (if supported)
to any atomic tests/commits
@feature
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 6734cacdff..7ad6ef8396 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c | |||
@@ -1303,6 +1303,20 @@ _output_mode_atomic_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode) | |||
1303 | goto err; | 1303 | goto err; |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | if (cstate->background.id) | ||
1307 | { | ||
1308 | ret = | ||
1309 | sym_drmModeAtomicAddProperty(req, cstate->obj_id, | ||
1310 | cstate->background.id, | ||
1311 | cstate->background.value); | ||
1312 | if (ret < 0) | ||
1313 | { | ||
1314 | ERR("Could not add atomic property"); | ||
1315 | ret = EINA_FALSE; | ||
1316 | goto err; | ||
1317 | } | ||
1318 | } | ||
1319 | |||
1306 | ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, | 1320 | ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, |
1307 | output); | 1321 | output); |
1308 | if (ret < 0) | 1322 | if (ret < 0) |