Skip to content
Snippets Groups Projects
Commit 5ed0fb9e authored by dos's avatar dos Committed by 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 a6bde3c7
No related branches found
No related tags found
1 merge request!597py,st3m: overlays: Initialize last_clip with the whole screen filled
Pipeline #9345 passed
......@@ -127,7 +127,7 @@ class Compositor(Responder):
}
self._last_fps_string = ""
self._clip_rect = Region()
self._last_clip = Region()
self._last_clip = Region(-120, -120, 120, 120)
self._display_mode = None
self._enabled: List[Responder] = []
self._last_enabled: List[Responder] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment