forked from enlightenment/efl
ecore-drm2: Fix enabling outputs
Commit 9d583b3fdb
broke
ecore_drm2_output_enabled_set function due changing order of setting
output->enabled value. This patch fixes both issues by checking the
'enabled' variable being passed in.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
fdf0812883
commit
4aeca75cff
|
@ -1175,7 +1175,7 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
|
||||||
if (!output->connected) return;
|
if (!output->connected) return;
|
||||||
if (output->enabled == enabled) return;
|
if (output->enabled == enabled) return;
|
||||||
|
|
||||||
if (output->enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
output->enabled = enabled;
|
output->enabled = enabled;
|
||||||
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
|
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
|
||||||
|
|
Loading…
Reference in New Issue