mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
Fix: using old api in Screen size check
This commit is contained in:
@@ -64,8 +64,7 @@ class Connection:
|
||||
requests.post('http://127.0.0.1:%s/newCommandTimeout' % port, data=str(expire))
|
||||
|
||||
def check_screen_size(self):
|
||||
info = self.device._request("get", '/info').json()
|
||||
width, height = info['display']['width'], info['display']['height']
|
||||
width, height = self.device.window_size()
|
||||
if height > width:
|
||||
width, height = height, width
|
||||
|
||||
|
||||
Reference in New Issue
Block a user