8000 Merge pull request #8301 from pypewpew/no-logo-fix-8.2.x · tannewt/circuitpython@7f68036 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f68036

Browse files
authored
Merge pull request micropython#8301 from pypewpew/no-logo-fix-8.2.x
Fix displayio when CIRCUITPY_REPL_LOGO is disabled
2 parents 8754b8e + 3120bd3 commit 7f68036

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)
0