summaryrefslogtreecommitdiff
path: root/lib/nes/app/ui/screen-browser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/app/ui/screen-browser.cc')
-rw-r--r--lib/nes/app/ui/screen-browser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nes/app/ui/screen-browser.cc b/lib/nes/app/ui/screen-browser.cc
index 1b515bd..50b0060 100644
--- a/lib/nes/app/ui/screen-browser.cc
+++ b/lib/nes/app/ui/screen-browser.cc
@@ -4,6 +4,7 @@
#include "nes/app/graphics/tiles/icons.hh"
#include "nes/app/input/input-device-keyboard.hh"
#include "nes/common/containers/path-view.hh"
+#include "nes/common/utils.hh"
namespace nes::app
{
@@ -152,6 +153,6 @@ namespace nes::app
// Round up to get page count.
auto const page_count = (count + (page_size - 1)) / page_size;
// Always show at least one page.
- selection_.set_page_count(std::max(u32{ 1 }, page_count));
+ selection_.set_page_count(max(u32{ 1 }, page_count));
}
} // namespace nes::app \ No newline at end of file