diff --git a/src/pixel_display.toit b/src/pixel_display.toit index 0e2734c..067f380 100644 --- a/src/pixel_display.toit +++ b/src/pixel_display.toit @@ -284,13 +284,12 @@ abstract class PixelDisplay implements Window: speed_ = speed if speed < 10 or driver_.flags & FLAG_PARTIAL_UPDATES == 0: draw_entire_display_ + if dirty_: bitmap_zap dirty_ CLEAN_ return // Send data for the whole screen, even if only part of it changed. if speed < 50: bitmap_zap dirty_ DIRTY_ - // TODO(kasper): Once we've started a partial update, we need to make sure we refresh, - // because otherwise the lock in the display code in the kernel will not be released. driver_.start_partial_update speed refreshed := false try: