stefan pushed a commit to branch master.

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

commit c5d46c88ec06b3e3c6a2c8f0b41a724c1428925e
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Apr 7 12:26:19 2015 -0400

    ecore-drm: Set mode flag for preferred if this is the preferred mode
    
    Summary: This fixes a minor oversight in ecore_drm_output_mode_add
    which was not setting the mode->flag to preferred if this is a
    preferred mode.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index 4fe6c7d..ab7ee31 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -239,8 +239,8 @@ _ecore_drm_output_mode_add(Ecore_Drm_Output *output, 
drmModeModeInfo *info)
    mode->refresh = refresh;
    mode->info = *info;
 
-   /* DBG("Added Mode: %dx%d@%d to Output %d",  */
-   /*     mode->width, mode->height, mode->refresh, output->crtc_id); */
+   if (info->type & DRM_MODE_TYPE_PREFERRED)
+     mode->flags |= DRM_MODE_TYPE_PREFERRED;
 
    output->modes = eina_list_append(output->modes, mode);
 

-- 


Reply via email to