Skip to content

Commit d18663c

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 0b3c742 + f5f63da commit d18663c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/shared/display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
6767
bool reset_tiles = false;
6868
uint16_t width_in_tiles = width_px / scroll_area->tile_width;
6969
// determine scale based on width
70-
if (width_in_tiles < 80) {
70+
if (width_in_tiles <= 80) {
7171
scale = 1;
7272
}
7373

@@ -133,7 +133,7 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
133133
#else
134134
scroll_area->y = title_bar->tile_height;
135135
#endif
136-
int16_t extra_height = (scroll_area->pixel_height + scroll_area->y) - height_px;
136+
int16_t extra_height = (scroll_area->pixel_height + scroll_area->y) - (height_px / scale);
137137
// Subtract extra height so that the bottom line fully shows. The top line will be under the
138138
// title bar and Blinka logo.
139139
scroll_area->y -= extra_height;

0 commit comments

Comments
 (0)