Use positive options names internally

For clarity, store the flag resulting of the command-line options
--no-control and --no-display into "control" and "display".
This commit is contained in:
Romain Vimont
2019-06-04 21:49:26 +02:00
parent 5b56900e2b
commit c8a6783494
3 changed files with 10 additions and 13 deletions

View File

@@ -455,8 +455,8 @@ main(int argc, char *argv[]) {
.show_touches = args.show_touches,
.fullscreen = args.fullscreen,
.always_on_top = args.always_on_top,
.no_control = args.no_control,
.no_display = args.no_display,
.control = !args.no_control,
.display = !args.no_display,
};
int res = scrcpy(&options) ? 0 : 1;