diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2023-11-27 18:17:24 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-12-09 21:20:21 +0100 |
| commit | 54b4750c6fd27ddde4eb48eb27b5d78e1818c3bc (patch) | |
| tree | 7126ad0a3dd8a6add918698abef7168eae2749a4 /src/displayapp/screens/ApplicationList.h | |
| parent | 41a4813c8bd9770013f30d5a31fcc3384e4cd3ab (diff) | |
Apply suggestion
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; }; |
