mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 22:14:20 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user