File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
shared-module/framebufferio Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ void common_hal_framebufferio_framebufferdisplay_construct(framebufferio_framebu
51
51
52
52
uint16_t ram_width = 0x100 ;
53
53
uint16_t ram_height = 0x100 ;
54
-
54
+ uint16_t depth = self -> framebuffer_protocol -> get_color_depth ( self -> framebuffer );
55
55
displayio_display_core_construct (
56
56
& self -> core ,
57
57
NULL ,
@@ -62,12 +62,13 @@ void common_hal_framebufferio_framebufferdisplay_construct(framebufferio_framebu
62
62
0 ,
63
63
0 ,
64
64
rotation ,
65
- self -> framebuffer_protocol -> get_color_depth ( self -> framebuffer ) ,
66
- false,
67
- false,
65
+ depth ,
66
+ ( depth < 12 ), // grayscale
67
+ true, // pixels_in_byte_share_row
68
68
self -> framebuffer_protocol -> get_bytes_per_cell (self -> framebuffer ),
69
- false,
70
- false);
69
+ true, // reverse_pixels_in_byte
70
+ false // reverse_bytes_in_word
71
+ );
71
72
72
73
self -> first_manual_refresh = !auto_refresh ;
73
74
You can’t perform that action at this time.
0 commit comments