Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Get dimension of device using local adb
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Aug 27, 2020
1 parent ac9d844 commit c6be09e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guiscrcpy/lib/mapper/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6be09e

Please sign in to comment.