diff options
author | Rob Clark <robdclark@chromium.org> | 2019-06-10 09:02:22 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-06-10 09:02:22 -0700 |
commit | bc0699f2826081dd54dbf8edd67e047393a20d40 (patch) | |
tree | 6c5cb0e6d8872be5701932848b35beefa13765cd | |
parent | 4b38e3aa2f39ec40380b77c0adec37e42774e05a (diff) | |
download | kmscube-bc0699f2826081dd54dbf8edd67e047393a20d40.tar.gz |
Use first preferred mode
Otherwise we would pick a higher resolution mode that follows the
preferred mode. It seems there are some monitors that will accept
higher resolutions than their native resolution and scale. Presumably
to support 1080p video on a lower resolution panel.
-rw-r--r-- | drm-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drm-common.c b/drm-common.c index 136fe69..e4dad9c 100644 --- a/drm-common.c +++ b/drm-common.c @@ -205,6 +205,7 @@ int init_drm(struct drm *drm, const char *device) if (current_mode->type & DRM_MODE_TYPE_PREFERRED) { drm->mode = current_mode; + break; } int current_area = current_mode->hdisplay * current_mode->vdisplay; |