From 0fc3786dffe08068df9e53f7ae4dc225094b6444 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 8 Aug 2014 13:00:00 -0700 Subject: [PATCH] weston-scaler --help works even if not run inside wayland --- clients/scaler.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/scaler.c b/clients/scaler.c index 39390220..f6d45c73 100644 --- a/clients/scaler.c +++ b/clients/scaler.c @@ -274,12 +274,6 @@ main(int argc, char *argv[]) struct timeval tv; int i; - d = display_create(&argc, argv); - if (d == NULL) { - fprintf(stderr, "failed to create display: %m\n"); - return -1; - } - box.mode = MODE_SRC_DST; for (i = 1; i < argc; i++) { @@ -297,6 +291,12 @@ main(int argc, char *argv[]) } } + d = display_create(&argc, argv); + if (d == NULL) { + fprintf(stderr, "failed to create display: %m\n"); + return -1; + } + gettimeofday(&tv, NULL); srandom(tv.tv_usec);