Skip to content

Commit fc540b7

Browse files
committed
Fix terminal on rotation
This fixes an issue where a terminal can't be started after being stopped (when tilegrid_tiles is freed and set to NULL.) Fixes #10241
1 parent d0776d3 commit fc540b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/display.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
141141

142142
displayio_tilegrid_t *scroll_area = &supervisor_terminal_scroll_area_text_grid;
143143
displayio_tilegrid_t *status_bar = &supervisor_terminal_status_bar_text_grid;
144-
bool reset_tiles = false;
144+
bool reset_tiles = tilegrid_tiles == NULL;
145145

146146
uint16_t glyph_width = 0;
147147
uint16_t glyph_height = 0;

0 commit comments

Comments
 (0)