From c6be09ebff39e941f9b6f5799ef43194355f7a0c Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Thu, 27 Aug 2020 17:49:38 +0300 Subject: [PATCH] Get dimension of device using local adb --- guiscrcpy/lib/mapper/mapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guiscrcpy/lib/mapper/mapper.py b/guiscrcpy/lib/mapper/mapper.py index 9a982b14..a7bd84f5 100644 --- a/guiscrcpy/lib/mapper/mapper.py +++ b/guiscrcpy/lib/mapper/mapper.py @@ -44,7 +44,8 @@ def __init__(self, device_id, adb, config_path=None): self.adb = adb self.adb.command('wait-for-any-device') self.window = None - self.dimensions = adb.get_dimensions(adb.path, device_id) + self.guiscrcpy_mapper_json = config_path + self.dimensions = adb.get_dimensions(device_id) if self.check_orientation() == 1: # reverse the detected dimensions. # possibly the device is landscape / not the default