From fc540b7ee44bc4c915752a8732b708308cf20b5b Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 9 May 2025 15:13:51 -0700 Subject: [PATCH] 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 --- supervisor/shared/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/shared/display.c b/supervisor/shared/display.c index 87af13d64688b..8d53b0e62be7e 100644 --- a/supervisor/shared/display.c +++ b/supervisor/shared/display.c @@ -141,7 +141,7 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) { displayio_tilegrid_t *scroll_area = &supervisor_terminal_scroll_area_text_grid; displayio_tilegrid_t *status_bar = &supervisor_terminal_status_bar_text_grid; - bool reset_tiles = false; + bool reset_tiles = tilegrid_tiles == NULL; uint16_t glyph_width = 0; uint16_t glyph_height = 0; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy