aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2023-11-27 18:17:24 +0000
committerJF <JF002@users.noreply.github.com>2023-12-09 21:20:21 +0100
commit54b4750c6fd27ddde4eb48eb27b5d78e1818c3bc (patch)
tree7126ad0a3dd8a6add918698abef7168eae2749a4
parent41a4813c8bd9770013f30d5a31fcc3384e4cd3ab (diff)
Apply suggestion
-rw-r--r--src/displayapp/screens/ApplicationList.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h
index b3a477ae..77e1d39e 100644
--- a/src/displayapp/screens/ApplicationList.h
+++ b/src/displayapp/screens/ApplicationList.h
@@ -38,7 +38,7 @@ namespace Pinetime {
static constexpr int appsPerScreen = 6;
- static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
+ static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1;
ScreenList<nScreens> screens;
};