From 7510878f9e0b0999e7251303081689b4a67453a4 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Fri, 22 May 2026 23:53:16 +0200 Subject: [PATCH] fix: center-crop splash logo in portrait mode via negative x offset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert logo width clamp — instead let x go negative so GxEPD's drawPixel clips symmetrically. In portrait (122px wide) x = (122-128)/2 = -3, cropping 3px from each side rather than 6px from the right only. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/UITask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index dcc6f470..2efa459c 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -71,7 +71,7 @@ public: // meshcore logo display.setColor(DisplayDriver::LIGHT); - int logoWidth = min(128, display.width()); + int logoWidth = 128; int logo_y = 3; display.drawXbm((display.width() - logoWidth) / 2, logo_y, meshcore_logo, logoWidth, 13);