mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +00:00
Fix boolean condition
Use the short-circuit operator && between booleans.
This commit is contained in:
parent
bcb8503b26
commit
22d78e8a82
1 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
|
||||||
return;
|
return;
|
||||||
case SDLK_DOWN:
|
case SDLK_DOWN:
|
||||||
if (shift) {
|
if (shift) {
|
||||||
if (!repeat & down) {
|
if (!repeat && down) {
|
||||||
apply_orientation_transform(im,
|
apply_orientation_transform(im,
|
||||||
SC_ORIENTATION_FLIP_180);
|
SC_ORIENTATION_FLIP_180);
|
||||||
}
|
}
|
||||||
|
@ -479,7 +479,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
|
||||||
return;
|
return;
|
||||||
case SDLK_UP:
|
case SDLK_UP:
|
||||||
if (shift) {
|
if (shift) {
|
||||||
if (!repeat & down) {
|
if (!repeat && down) {
|
||||||
apply_orientation_transform(im,
|
apply_orientation_transform(im,
|
||||||
SC_ORIENTATION_FLIP_180);
|
SC_ORIENTATION_FLIP_180);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue