aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2023-11-27 01:22:19 +0000
committerJF <JF002@users.noreply.github.com>2023-12-09 21:20:21 +0100
commit41a4813c8bd9770013f30d5a31fcc3384e4cd3ab (patch)
treefb2644781fd71855ecfc800ff1a0f2306b4e457a /src/displayapp
parent42fcb99b389139c974742ad807a5a6da61231a5c (diff)
Fix calculation of number of app screens
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/screens/ApplicationList.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h
index f8a6be66..b3a477ae 100644
--- a/src/displayapp/screens/ApplicationList.h
+++ b/src/displayapp/screens/ApplicationList.h
@@ -38,8 +38,7 @@ namespace Pinetime {
static constexpr int appsPerScreen = 6;
- // Increment this when more space is needed
- static constexpr int nScreens = (UserAppTypes::Count / appsPerScreen) + 1;
+ static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
ScreenList<nScreens> screens;
};