summaryrefslogtreecommitdiff
path: root/drm-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drm-common.c')
-rw-r--r--drm-common.c1
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;