From 8f5ecdfc9e2c705638091c00eed0cd64a50b7b4c Mon Sep 17 00:00:00 2001 From: Rei Vilo Date: Thu, 14 Dec 2023 15:24:38 +0100 Subject: [PATCH] Update image_converter.py Replaced line 161 for BWR screens --- app/bluetooth/example_host/bt_host_esl_ap/image_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bluetooth/example_host/bt_host_esl_ap/image_converter.py b/app/bluetooth/example_host/bt_host_esl_ap/image_converter.py index 8fae1ac82ed..deaa573dbc1 100644 --- a/app/bluetooth/example_host/bt_host_esl_ap/image_converter.py +++ b/app/bluetooth/example_host/bt_host_esl_ap/image_converter.py @@ -158,7 +158,7 @@ def convert(self, display_size=CONF_WSTK_DISPLAY_SIZE, bw=True, bitflip=True, ro red_pixels = display_image.remap_palette([0,0,2]).convert('1') image_size = display_size - if len(display_image.getcolors()) == 3: + if not(bw): image_size = tuple(map(mul, display_size, (1,2))) image_out = Image.new('RGB', image_size, "white") # would be better to use the display color