forked from enlightenment/efl
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:
parent
92e10af291
commit
c5d46c88ec
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue