Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 857abdb8 authored by Kevin Schoedel's avatar Kevin Schoedel Committed by android-build-merger
Browse files

Merge "Remove constraint on touch location." into oc-dr1-dev am: d8fb01fe

am: 9393de42

Change-Id: I298fb174dc62a6c02478597fb4b0b869eb61d94e
parents 13c058fc 9393de42
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -94,9 +94,6 @@ int VirtualTouchpadEvdev::Touch(int touchpad_id, float x, float y,
  if (touchpad_id < 0 || touchpad_id >= kTouchpads) {
  if (touchpad_id < 0 || touchpad_id >= kTouchpads) {
    return EINVAL;
    return EINVAL;
  }
  }
  if ((x < 0.0f) || (x >= 1.0f) || (y < 0.0f) || (y >= 1.0f)) {
    return EINVAL;
  }
  int32_t device_x = x * kWidth;
  int32_t device_x = x * kWidth;
  int32_t device_y = y * kHeight;
  int32_t device_y = y * kHeight;
  Touchpad& touchpad = touchpad_[touchpad_id];
  Touchpad& touchpad = touchpad_[touchpad_id];