mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-05 11:46:11 +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:
co-authored by
Claude Sonnet 4.6
parent
4dd36f685d
commit
7510878f9e
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
// meshcore logo
|
// meshcore logo
|
||||||
display.setColor(DisplayDriver::LIGHT);
|
display.setColor(DisplayDriver::LIGHT);
|
||||||
int logoWidth = min(128, display.width());
|
int logoWidth = 128;
|
||||||
int logo_y = 3;
|
int logo_y = 3;
|
||||||
display.drawXbm((display.width() - logoWidth) / 2, logo_y, meshcore_logo, logoWidth, 13);
|
display.drawXbm((display.width() - logoWidth) / 2, logo_y, meshcore_logo, logoWidth, 13);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user