From 319b2bc31f750cacb2ac1c1033598318cfe7e341 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Wed, 9 Oct 2019 14:46:41 +0200 Subject: [PATCH] fix: fixed text overlap for waveshare 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 354d910..b743d06 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -39,7 +39,7 @@ def setup_display_specifics(config): width = 200 height = 96 face_pos = (0, int(height / 4)) - name_pos = (int(width / 2) - 15, int(height * .15)) + name_pos = (5, int(height * .15)) status_pos = (int(width / 2) - 15, int(height * .30)) elif config['ui']['display']['type'] in ('ws_1', 'ws1', 'waveshare_1', 'waveshare1', @@ -49,8 +49,8 @@ def setup_display_specifics(config): width = 250 height = 122 face_pos = (0, 40) - name_pos = (125, 20) - status_pos = (125, 35) + name_pos = (5, 20) + status_pos = (125, 20) return width, height, face_pos, name_pos, status_pos