[PATCH 11/12] weston-scaler --help works even if not run inside wayland
Bill Spitzak
spitzak at gmail.com
Fri Aug 8 13:00:00 PDT 2014
---
clients/scaler.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/clients/scaler.c b/clients/scaler.c
index 3939022..f6d45c7 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);
--
1.7.9.5
More information about the wayland-devel
mailing list