raster pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=efaff2108cb18ca982ef60a9138a8aa69f039499

commit efaff2108cb18ca982ef60a9138a8aa69f039499
Author: Chris Michael <[email protected]>
Date:   Tue Jan 9 12:43:15 2018 -0500

    ecore-drm2: Fix enabling outputs
    
    Commit 9d583b3fdbed686642dbc0d96d1e417485ca0077 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 <[email protected]>
---
 src/lib/ecore_drm2/ecore_drm2_outputs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c 
b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index dd11feeae8..be853bd573 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1201,7 +1201,7 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, 
Eina_Bool enabled)
    if (!output->connected) return;
    if (output->enabled == enabled) return;
 
-   if (output->enabled)
+   if (enabled)
      {
         output->enabled = enabled;
         ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);

-- 


Reply via email to