diff options
author | Bill Spitzak <spitzak@gmail.com> | 2014-08-08 13:00:00 -0700 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-08-19 12:21:44 +0300 |
commit | 0fc3786dffe08068df9e53f7ae4dc225094b6444 (patch) | |
tree | 22f3ef7d697cd8d0a1ae61ba9629b882f35261d8 | |
parent | a8292618a64eace370457dab65a3d1348c1210d0 (diff) | |
download | weston-0fc3786dffe08068df9e53f7ae4dc225094b6444.tar.gz weston-0fc3786dffe08068df9e53f7ae4dc225094b6444.tar.bz2 weston-0fc3786dffe08068df9e53f7ae4dc225094b6444.zip |
weston-scaler --help works even if not run inside wayland
-rw-r--r-- | clients/scaler.c | 12 |
1 files 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); |