Skip to content

Commit 40dd2b0

Browse files
desktop: fix color format
1 parent 754054a commit 40dd2b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal_filesystem/boot_unix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
bus = lcd_bus.SDLBus(flags=0)
1010

11-
buf1 = bus.allocate_framebuffer(TFT_HOR_RES * TFT_VER_RES * 3, 0)
11+
buf1 = bus.allocate_framebuffer(TFT_HOR_RES * TFT_VER_RES * 2, 0)
1212

13-
display = sdl_display.SDLDisplay(data_bus=bus,display_width=TFT_HOR_RES,display_height=TFT_VER_RES,frame_buffer1=buf1,color_space=lv.COLOR_FORMAT.RGB888)
13+
display = sdl_display.SDLDisplay(data_bus=bus,display_width=TFT_HOR_RES,display_height=TFT_VER_RES,frame_buffer1=buf1,color_space=lv.COLOR_FORMAT.RGB565)
1414
display.init()
1515

1616
mouse = sdl_pointer.SDLPointer()

0 commit comments

Comments
 (0)