mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-29 13:28:13 +00:00
Fix boolean condition
Use the short-circuit operator && between booleans.
This commit is contained in:
parent
bcb8503b26
commit
22d78e8a82
@ -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…
x
Reference in New Issue
Block a user