We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a4813 commit 54b4750Copy full SHA for 54b4750
src/displayapp/screens/ApplicationList.h
@@ -38,7 +38,7 @@ namespace Pinetime {
38
39
static constexpr int appsPerScreen = 6;
40
41
- static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
+ static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1;
42
43
ScreenList<nScreens> screens;
44
};
0 commit comments