From 1930c8106225b4b6d4b51f3b2557c84ab644e1f0 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 25 Jan 2018 17:16:32 +0100 Subject: [PATCH] Add toString() methods to java point classes Useful for debugging. --- server/src/com/genymobile/scrcpy/Point.java | 9 +++++++++ server/src/com/genymobile/scrcpy/RawPoint.java | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/server/src/com/genymobile/scrcpy/Point.java b/server/src/com/genymobile/scrcpy/Point.java index 6e537108..ade349d1 100644 --- a/server/src/com/genymobile/scrcpy/Point.java +++ b/server/src/com/genymobile/scrcpy/Point.java @@ -30,4 +30,13 @@ public class Point { return screenHeight; } + @Override + public String toString() { + return "Point{" + + "x=" + x + + ", y=" + y + + ", screenWidth=" + screenWidth + + ", screenHeight=" + screenHeight + + '}'; + } } diff --git a/server/src/com/genymobile/scrcpy/RawPoint.java b/server/src/com/genymobile/scrcpy/RawPoint.java index e1b8d921..d9ac5c8e 100644 --- a/server/src/com/genymobile/scrcpy/RawPoint.java +++ b/server/src/com/genymobile/scrcpy/RawPoint.java @@ -17,4 +17,11 @@ public class RawPoint { return y; } + @Override + public String toString() { + return "RawPoint{" + + "x=" + x + + ", y=" + y + + '}'; + } }