From 6e1b3023daa5424f565314fefbedc2bd7663ed18 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 9 Feb 2026 20:42:47 +0100 Subject: [PATCH] Scale boot logo down if necessary --- internal_filesystem/lib/mpos/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal_filesystem/lib/mpos/main.py b/internal_filesystem/lib/mpos/main.py index df169035..da987d36 100644 --- a/internal_filesystem/lib/mpos/main.py +++ b/internal_filesystem/lib/mpos/main.py @@ -23,6 +23,8 @@ def init_rootscreen(): # Show logo img = lv.image(screen) img.set_src("M:builtin/res/mipmap-mdpi/MicroPythonOS-logo-white-long-w296.png") # from the MPOS-logo repo + if width < 296: + img.set_scale(int(256 * width/296)) img.set_blend_mode(lv.BLEND_MODE.DIFFERENCE) img.center()