From 9625cf1122eed7eca9999d127228e30d12333787 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Mon, 14 Oct 2019 19:26:23 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/ui/layout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/ui/layout.py b/pwnagotchi/ui/layout.py index eb1c266..d8c7e9b 100644 --- a/pwnagotchi/ui/layout.py +++ b/pwnagotchi/ui/layout.py @@ -46,7 +46,7 @@ def papirus(config, layout): layout['status'] = { 'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)), 'font': fonts.Medium, - 'max': (layout['width'] - layout['status'][0]) // 6 + 'max': (layout['width'] - layout['status']['pos'][0]) // 6 } return layout @@ -71,7 +71,7 @@ def oledhat(config, layout): layout['status'] = { 'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)), 'font': fonts.Medium, - 'max': (layout['width'] - layout['status'][0]) // 6 + 'max': (layout['width'] - layout['status']['pos'][0]) // 6 } return layout @@ -118,7 +118,7 @@ def waveshare(config, layout): layout['status'] = { 'pos': (125, 20), 'font': fonts.Medium, - 'max': (layout['width'] - layout['status'][0]) // 6 + 'max': (layout['width'] - layout['status']['pos'][0]) // 6 } return layout