From dec302be81a0a1af06ccff86e202bc175d941514 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 25 Apr 2025 12:43:59 +0200 Subject: [PATCH] Put camera on subwindow --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index e849fe57..319f45f7 100644 --- a/main.py +++ b/main.py @@ -133,6 +133,9 @@ notification_bar.add_event_cb(toggle_drawer, lv.EVENT.CLICKED, None) # Subwindow is created before drawer so that drawer is on top +# Instead of giving the apps access to the subwindow, potentially corrupting it, +# it might be better to give a subcontainer in the subwindow. +# But if that's a performance impact, then properly restoring the subwindow along with subwindow.clean() is also an option. screen = lv.screen_active() subwindow = lv.obj(screen) subwindow.set_size(TFT_HOR_RES, TFT_VER_RES - NOTIFICATION_BAR_HEIGHT)