forked from enlightenment/efl
ecore-drm2: Cleanup output_enabled_set function code
If we are using atomic, we don't need to set the crtc active values here as they will be set in output_dpms_set function anyway. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
7a3c658759
commit
851a2c72af
|
@ -1235,19 +1235,13 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
|
||||||
|
|
||||||
if (output->enabled)
|
if (output->enabled)
|
||||||
{
|
{
|
||||||
if (_ecore_drm2_use_atomic)
|
|
||||||
output->crtc_state->active.value = 1;
|
|
||||||
|
|
||||||
ecore_drm2_fb_flip(NULL, output);
|
ecore_drm2_fb_flip(NULL, output);
|
||||||
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
|
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_ecore_drm2_use_atomic)
|
if (_ecore_drm2_use_atomic)
|
||||||
{
|
|
||||||
output->crtc_state->active.value = 0;
|
|
||||||
ecore_drm2_fb_flip(NULL, output);
|
ecore_drm2_fb_flip(NULL, output);
|
||||||
}
|
|
||||||
|
|
||||||
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_OFF);
|
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_OFF);
|
||||||
output->current.fb = NULL;
|
output->current.fb = NULL;
|
||||||
|
|
Loading…
Reference in New Issue