From 4c32dc1e2a6f9cf3af1b098e8cb2cdfa6d54abfa Mon Sep 17 00:00:00 2001 From: IncredibleZuess Date: Sat, 9 Nov 2024 18:58:50 +0200 Subject: [PATCH] Fixed frise after testing --- display.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display.py b/display.py index cab3173..3967299 100644 --- a/display.py +++ b/display.py @@ -316,9 +316,9 @@ class Display: draw.text((int(35 * self.scale_factor_x), int(65 * self.scale_factor_y)), self.shared_data.bjornstatustext, font=self.shared_data.font_arial9, fill=0) draw.text((int(35 * self.scale_factor_x), int(75 * self.scale_factor_y)), self.shared_data.bjornstatustext2, font=self.shared_data.font_arial9, fill=0) - #Gonna just roll with the bmp at the moment for the 2in7 display please replace with a resizable format - if (self.config["epd_type"]) == "epd2in7": - image.paste(self.shared_data.frise, (int(20 * self.scale_factor_x), int(160 * self.scale_factor_y))) + #Fix the frise for the 2in7 display + if self.config["epd_type"] == "epd2in7": + image.paste(self.shared_data.frise, (int(50 * self.scale_factor_x), int(160 * self.scale_factor_y))) image.paste(self.shared_data.frise, (int(0 * self.scale_factor_x), int(160 * self.scale_factor_y)))