Skip to content

Commit f7fbf64

Browse files
committed
fixes problem with the byte order for unix/maxos ports and fixes hard coded IDF version
1 parent 98331a3 commit f7fbf64

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

api_drivers/common_api_drivers/display/sdl_display/sdl_display.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
_active_event_poll = False
6666

6767

68+
BYTE_ORDER_RGB = display_driver_framework.BYTE_ORDER_RGB
69+
BYTE_ORDER_BGR = display_driver_framework.BYTE_ORDER_BGR
70+
71+
6872
class SDLDisplay(display_driver_framework.DisplayDriver):
6973

7074
def __init__(
@@ -149,11 +153,16 @@ def __init__(
149153
lv.COLOR_FORMAT.RAW_ALPHA: _SDL_PIXELFORMAT_RGBA8888 # NOQA
150154
}
151155

152-
cf = self._cf = mapping.get(color_space, None)
156+
cf = mapping.get(color_space, None)
153157

154158
if cf is None:
155159
raise RuntimeError('Color format is not supported')
156160

161+
if cf == _SDL_PIXELFORMAT_RGB24 and self._color_byte_order == BYTE_ORDER_BGR:
162+
cf = _SDL_PIXELFORMAT_BGR24
163+
164+
self._cf = cf
165+
157166
data_bus.init(
158167
display_width,
159168
display_height,

builder/esp32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
scrub_build_folder
1717
)
1818

19-
IDF_VER = '5.2.0'
19+
IDF_VER = '5.4.0'
2020

2121

2222
def get_partition_file_name(otp):

0 commit comments

Comments
 (0)