mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
fix: center-crop splash logo in portrait mode via negative x offset
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user