Skip to content

Display and control your Android device

Workaround compiler warning

Romain Vimont95fa1a69e498
diff --git a/app/src/input_manager.c b/app/src/input_manager.c
index 39e1252d..589eb842 100644
--- a/app/src/input_manager.c
+++ b/app/src/input_manager.c
@@ -463,12 +463,11 @@ rotate_position(struct screen *screen, int32_t x, int32_t y) {
result.x = w - x;
result.y = h - y;
break;
- case 3:
+ default:
+ assert(rotation == 3);
result.x = y;
result.y = w - x;
break;
- default:
- assert(!"Unreachable");
}
return result;
}