From 3c2a3485c4992b59bf52918ed909fc6c00f0fa51 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 9 Oct 2019 14:48:37 +0200 Subject: [PATCH] fix: attempt of a fix for inky and papirus displays (ref #229) --- pwnagotchi/ui/view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index b743d065..423992f8 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -30,8 +30,8 @@ def setup_display_specifics(config): width = 212 height = 104 face_pos = (0, int(height / 4)) - name_pos = (int(width / 2) - 15, int(height * .15)) - status_pos = (int(width / 2) - 15, int(height * .30)) + name_pos = (5, int(height * .15)) + status_pos = (int(width / 2) - 15, int(height * .15)) elif config['ui']['display']['type'] in ('papirus', 'papi'): fonts.setup(10, 8, 10, 23) @@ -40,7 +40,7 @@ def setup_display_specifics(config): height = 96 face_pos = (0, int(height / 4)) name_pos = (5, int(height * .15)) - status_pos = (int(width / 2) - 15, int(height * .30)) + status_pos = (int(width / 2) - 15, int(height * .15)) elif config['ui']['display']['type'] in ('ws_1', 'ws1', 'waveshare_1', 'waveshare1', 'ws_2', 'ws2', 'waveshare_2', 'waveshare2'):