summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_outputs.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 7ad6ef8396..a433d54358 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1746,3 +1746,21 @@ ecore_drm2_output_relative_to_get(Ecore_Drm2_Output *output)
1746 EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL); 1746 EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
1747 return output->relative.to; 1747 return output->relative.to;
1748} 1748}
1749
1750EAPI Eina_Bool
1751ecore_drm2_output_background_color_set(Ecore_Drm2_Output *output, int r, int g, int b, int a)
1752{
1753 Ecore_Drm2_Crtc_State *cstate;
1754
1755 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
1756 EINA_SAFETY_ON_NULL_RETURN_VAL(output->crtc_state, EINA_FALSE);
1757
1758 cstate = output->crtc_state;
1759 if (cstate->background.id)
1760 {
1761 cstate->background.value = (a << 48 | b << 32 | g << 16 | r);
1762 return _fb_atomic_flip_test(output);
1763 }
1764
1765 return EINA_FALSE;
1766}