From 30b64d8e7b92e5728fff94f31da53a1c3d29b777 Mon Sep 17 00:00:00 2001 From: Erik Corry Date: Tue, 5 Dec 2023 10:57:01 +0100 Subject: [PATCH] Fix too-narrow patches when we hit the display height --- src/pixel_display.toit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixel_display.toit b/src/pixel_display.toit index 5ece466..ef67fd9 100644 --- a/src/pixel_display.toit +++ b/src/pixel_display.toit @@ -436,7 +436,7 @@ abstract class PixelDisplay implements Window: round_down (max_canvas_height_ width) y_rounding_ y_rounding_ // Don't widen any more if the patches are already too flat to fill the full height. - if max_height <= driver_.height: break + if max_height < driver_.height: break // Don't widen any more if the patches already cover the whole width. if width >= driver_.width: break width_target += width_target