Skip to content
Snippets Groups Projects
Verified Commit 0ed8de96 authored by dos's avatar dos
Browse files

py,st3m: overlays: Initialize last_clip with the whole screen filled

This makes the rendering code clear the whole screen on first frame.
This is needed because the framebuffer may be filled with content from
previous mpy boot after a soft reboot, leading to possible artifacts.
parent 5ed1d828
No related branches found
No related tags found
No related merge requests found
Pipeline #9329 passed
...@@ -127,7 +127,7 @@ class Compositor(Responder): ...@@ -127,7 +127,7 @@ class Compositor(Responder):
} }
self._last_fps_string = "" self._last_fps_string = ""
self._clip_rect = Region() self._clip_rect = Region()
self._last_clip = Region() self._last_clip = Region(-120, -120, 120, 120)
self._display_mode = None self._display_mode = None
self._enabled: List[Responder] = [] self._enabled: List[Responder] = []
self._last_enabled: List[Responder] = [] self._last_enabled: List[Responder] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment