aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
};