summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/display.cpp4
-rw-r--r--src/ui/screen.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp
index cb3ee3a0..026e1346 100644
--- a/src/drivers/display.cpp
+++ b/src/drivers/display.cpp
@@ -40,8 +40,8 @@
[[maybe_unused]] static const char* kTag = "DISPLAY";
// TODO(jacqueline): Encode width and height variations in the init data.
-static const uint8_t kDisplayHeight = 128 + 2;
-static const uint8_t kDisplayWidth = 160 + 1;
+static const uint8_t kDisplayHeight = 128;
+static const uint8_t kDisplayWidth = 160;
static const uint8_t kTransactionQueueSize = 2;
static const gpio_num_t kDisplayDr = GPIO_NUM_33;
diff --git a/src/ui/screen.cpp b/src/ui/screen.cpp
index 3e4f8e42..aafc982c 100644
--- a/src/ui/screen.cpp
+++ b/src/ui/screen.cpp
@@ -35,6 +35,9 @@ Screen::Screen()
lv_obj_set_style_bg_opa(modal_content_, LV_OPA_TRANSP, 0);
lv_obj_set_style_bg_color(modal_content_, lv_color_black(), 0);
+ lv_obj_set_scrollbar_mode(root_, LV_SCROLLBAR_MODE_OFF);
+ lv_obj_set_scrollbar_mode(content_, LV_SCROLLBAR_MODE_OFF);
+
// Disable wrapping by default, since it's confusing and generally makes it
// harder to navigate quickly.
lv_group_set_wrap(group_, false);