diff options
Diffstat (limited to 'src/displayapp/screens/ApplicationList.h')
| -rw-r--r-- | src/displayapp/screens/ApplicationList.h | 2 |
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; }; |
