Skip to content

Commit b50a7fb

Browse files
committed
Fix displayio when CIRCUITPY_REPL_LOGO is disabled
We have to make room for the status bar no matter if the logo is enabled or not. We probably should add a similar option for disabling the status bar. This makes the PewPew M4 port stop crashing.
1 parent babd2de commit b50a7fb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

supervisor/shared/display.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,8 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
128128
status_bar->full_change = true;
129129

130130
scroll_area->width_in_tiles = width_in_tiles;
131-
scroll_area->height_in_tiles = height_in_tiles;
132-
#if CIRCUITPY_REPL_LOGO
133-
scroll_area->height_in_tiles -= 1;
134-
#endif
131+
// Leave space for the status bar, no matter if we have logo or not.
132+
scroll_area->height_in_tiles = height_in_tiles - 1;
135133
scroll_area->pixel_width = scroll_area->width_in_tiles * scroll_area->tile_width;
136134
scroll_area->pixel_height = scroll_area->height_in_tiles * scroll_area->tile_height;
137135
// Right align the scroll area to give margin to the start of each line.

0 commit comments

Comments
 (0)