File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
api_drivers/common_api_drivers/display/sdl_display Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 65
65
_active_event_poll = False
66
66
67
67
68
+ BYTE_ORDER_RGB = display_driver_framework .BYTE_ORDER_RGB
69
+ BYTE_ORDER_BGR = display_driver_framework .BYTE_ORDER_BGR
70
+
71
+
68
72
class SDLDisplay (display_driver_framework .DisplayDriver ):
69
73
70
74
def __init__ (
@@ -149,11 +153,16 @@ def __init__(
149
153
lv .COLOR_FORMAT .RAW_ALPHA : _SDL_PIXELFORMAT_RGBA8888 # NOQA
150
154
}
151
155
152
- cf = self . _cf = mapping .get (color_space , None )
156
+ cf = mapping .get (color_space , None )
153
157
154
158
if cf is None :
155
159
raise RuntimeError ('Color format is not supported' )
156
160
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
+
157
166
data_bus .init (
158
167
display_width ,
159
168
display_height ,
Original file line number Diff line number Diff line change 16
16
scrub_build_folder
17
17
)
18
18
19
- IDF_VER = '5.2 .0'
19
+ IDF_VER = '5.4 .0'
20
20
21
21
22
22
def get_partition_file_name (otp ):
You can’t perform that action at this time.
0 commit comments