summaryrefslogtreecommitdiff
path: root/src/tangara/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/tangara/ui')
-rw-r--r--src/tangara/ui/ui_fsm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tangara/ui/ui_fsm.cpp b/src/tangara/ui/ui_fsm.cpp
index ebc4b635..020917e2 100644
--- a/src/tangara/ui/ui_fsm.cpp
+++ b/src/tangara/ui/ui_fsm.cpp
@@ -352,10 +352,13 @@ void UiState::react(const internal::InitDisplay& ev) {
// HACK: correct the display size for our prototypes.
// ev.nvs.DisplaySize({161, 130});
+ // HACK: correct the display padding for batch 2.
+ // ev.nvs.DisplayLeftPadding(3);
auto actual_size = ev.nvs.DisplaySize();
init_data.width = actual_size.first.value_or(init_data.width);
init_data.height = actual_size.second.value_or(init_data.height);
+ init_data.pad = ev.nvs.DisplayLeftPadding();
sDisplay.reset(drivers::Display::Create(ev.gpios, init_data));
sCurrentScreen.reset(new screens::Splash());