weston-scaler --help works even if not run inside wayland
This commit is contained in:
committed by
Pekka Paalanen
parent
a8292618a6
commit
0fc3786dff
+6
-6
@@ -274,12 +274,6 @@ main(int argc, char *argv[])
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int i;
|
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;
|
box.mode = MODE_SRC_DST;
|
||||||
|
|
||||||
for (i = 1; i < argc; i++) {
|
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);
|
gettimeofday(&tv, NULL);
|
||||||
srandom(tv.tv_usec);
|
srandom(tv.tv_usec);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user