mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 00:52:22 +00:00
Fix: using old api in Screen size check
This commit is contained in:
parent
a8333f55d4
commit
fba270471d
@ -64,8 +64,7 @@ class Connection:
|
|||||||
requests.post('http://127.0.0.1:%s/newCommandTimeout' % port, data=str(expire))
|
requests.post('http://127.0.0.1:%s/newCommandTimeout' % port, data=str(expire))
|
||||||
|
|
||||||
def check_screen_size(self):
|
def check_screen_size(self):
|
||||||
info = self.device._request("get", '/info').json()
|
width, height = self.device.window_size()
|
||||||
width, height = info['display']['width'], info['display']['height']
|
|
||||||
if height > width:
|
if height > width:
|
||||||
width, height = height, width
|
width, height = height, width
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user