From f556ebe269dbfa913377f54ba19199ee479f69b9 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 21 May 2015 08:28:58 +0100 Subject: [PATCH] compositor-drm: Clean trailing whitespace Signed-off-by: Daniel Stone --- src/compositor-drm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 71ece6b6..bf921bee 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1221,10 +1221,10 @@ choose_mode (struct drm_output *output, struct weston_mode *target_mode) wl_list_for_each(mode, &output->base.mode_list, base.link) { if (mode->mode_info.hdisplay == target_mode->width && mode->mode_info.vdisplay == target_mode->height) { - if (mode->mode_info.vrefresh == target_mode->refresh || + if (mode->mode_info.vrefresh == target_mode->refresh || target_mode->refresh == 0) { return mode; - } else if (!tmp_mode) + } else if (!tmp_mode) tmp_mode = mode; } } @@ -2415,7 +2415,7 @@ update_outputs(struct drm_compositor *ec, struct udev_device *drm_device) } } - /* FIXME: handle zero outputs, without terminating */ + /* FIXME: handle zero outputs, without terminating */ if (ec->connector_allocator == 0) wl_display_terminate(ec->base.wl_display); } @@ -2509,7 +2509,7 @@ drm_compositor_set_modes(struct drm_compositor *compositor) if (ret < 0) { weston_log( "failed to set mode %dx%d for output at %d,%d: %m\n", - drm_mode->base.width, drm_mode->base.height, + drm_mode->base.width, drm_mode->base.height, output->base.x, output->base.y); } }