From 1c5edaf4fb2b267e629c6ddb56057093daca07ef Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 11 Oct 2021 12:41:43 -0700 Subject: [PATCH] fatal: use align up for width calc --- stratosphere/fatal/source/fatal_task_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/fatal/source/fatal_task_screen.cpp b/stratosphere/fatal/source/fatal_task_screen.cpp index 95a61aabc..473416aa8 100644 --- a/stratosphere/fatal/source/fatal_task_screen.cpp +++ b/stratosphere/fatal/source/fatal_task_screen.cpp @@ -35,7 +35,7 @@ namespace ams::fatal::srv { constexpr u32 FatalScreenBpp = 2; constexpr u32 FatalLayerZ = 100; - constexpr u32 FatalScreenWidthAlignedBytes = (FatalScreenWidth * FatalScreenBpp + 63) & ~63; + constexpr u32 FatalScreenWidthAlignedBytes = util::AlignUp(FatalScreenWidth * FatalScreenBpp, 64); constexpr u32 FatalScreenWidthAligned = FatalScreenWidthAlignedBytes / FatalScreenBpp; /* There should only be a single transfer memory (for nv). */