Merge pull request #8301 from pypewpew/no-logo-fix-8.2.x

Fix displayio when CIRCUITPY_REPL_LOGO is disabled
This commit is contained in:
Dan Halbert 2023-08-19 20:40:22 -04:00 committed by GitHub
commit 7f680364fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,10 +128,8 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
status_bar->full_change = true;
scroll_area->width_in_tiles = width_in_tiles;
scroll_area->height_in_tiles = height_in_tiles;
#if CIRCUITPY_REPL_LOGO
scroll_area->height_in_tiles -= 1;
#endif
// Leave space for the status bar, no matter if we have logo or not.
scroll_area->height_in_tiles = height_in_tiles - 1;
scroll_area->pixel_width = scroll_area->width_in_tiles * scroll_area->tile_width;
scroll_area->pixel_height = scroll_area->height_in_tiles * scroll_area->tile_height;
// Right align the scroll area to give margin to the start of each line.