Skip to content

Commit

Permalink
Add toString() methods to java point classes
Browse files Browse the repository at this point in the history
Useful for debugging.
  • Loading branch information
rom1v committed Jan 25, 2018
1 parent dca53ff commit 1930c81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/src/com/genymobile/scrcpy/Point.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ public int getScreenHeight() {
return screenHeight;
}

@Override
public String toString() {
return "Point{" +
"x=" + x +
", y=" + y +
", screenWidth=" + screenWidth +
", screenHeight=" + screenHeight +
'}';
}
}
7 changes: 7 additions & 0 deletions server/src/com/genymobile/scrcpy/RawPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ public int getY() {
return y;
}

@Override
public String toString() {
return "RawPoint{" +
"x=" + x +
", y=" + y +
'}';
}
}

0 comments on commit 1930c81

Please sign in to comment.