mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 10:16:11 +00:00
fix: apply rotation before splash screen, clip logo to display width
- Move applyRotation() before setCurrScreen(splash) so e-ink startup screen respects the saved display_rotation preference - Clamp meshcore logo width to display.width() so it doesn't overflow in portrait mode (122px screen vs 128px logo) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
bad9fae419
commit
4dd36f685d
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
// meshcore logo
|
// meshcore logo
|
||||||
display.setColor(DisplayDriver::LIGHT);
|
display.setColor(DisplayDriver::LIGHT);
|
||||||
int logoWidth = 128;
|
int logoWidth = min(128, display.width());
|
||||||
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);
|
||||||
|
|
||||||
@@ -893,11 +893,10 @@ void UITask::begin(DisplayDriver* display, SensorManager* sensors, NodePrefs* no
|
|||||||
nearby_screen = new NearbyScreen(this);
|
nearby_screen = new NearbyScreen(this);
|
||||||
dashboard_config = new DashboardConfigScreen(this, node_prefs);
|
dashboard_config = new DashboardConfigScreen(this, node_prefs);
|
||||||
auto_advert_screen = new AutoAdvertScreen(this, node_prefs);
|
auto_advert_screen = new AutoAdvertScreen(this, node_prefs);
|
||||||
setCurrScreen(splash);
|
|
||||||
|
|
||||||
applyBrightness();
|
applyBrightness();
|
||||||
applyFont();
|
applyFont();
|
||||||
applyRotation();
|
applyRotation();
|
||||||
|
setCurrScreen(splash);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UITask::gotoSettingsScreen() {
|
void UITask::gotoSettingsScreen() {
|
||||||
|
|||||||
Reference in New Issue
Block a user