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.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-07 12:26:19 -04:00 committed by Stefan Schmidt
parent 92e10af291
commit c5d46c88ec
1 changed files with 2 additions and 2 deletions

View File

@ -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);