mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00:00
Fix boolean assignment
On --no-vd-system-decoration, the boolean option must be set to false. It was wrongly assigned from optarg (this worked because optarg is NULL at this point, so it was converted to false). PR #5615 <https://github.com/Genymobile/scrcpy/pull/5615>
This commit is contained in:
parent
f90dc216d1
commit
988174805c
1 changed files with 1 additions and 1 deletions
|
@ -2706,7 +2706,7 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|||
opts->angle = optarg;
|
||||
break;
|
||||
case OPT_NO_VD_SYSTEM_DECORATIONS:
|
||||
opts->vd_system_decorations = optarg;
|
||||
opts->vd_system_decorations = false;
|
||||
break;
|
||||
default:
|
||||
// getopt prints the error message on stderr
|
||||
|
|
Loading…
Add table
Reference in a new issue