From e62606d2762441d0b8da25b4ce6ecafd1150cc1d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 6 Mar 2019 14:39:48 -0800 Subject: [PATCH] fatal: only set display magnification on 3.0.0+ --- stratosphere/fatal/source/fatal_task_screen.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stratosphere/fatal/source/fatal_task_screen.cpp b/stratosphere/fatal/source/fatal_task_screen.cpp index a67cf71ce..7b99d9b6e 100644 --- a/stratosphere/fatal/source/fatal_task_screen.cpp +++ b/stratosphere/fatal/source/fatal_task_screen.cpp @@ -117,8 +117,12 @@ Result ShowFatalTask::PrepareScreenForDrawing() { if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) { return rc; } - if (R_FAILED((rc = viSetDisplayMagnification(&this->display, 0, 0, display_width, display_height)))) { - return rc; + + /* viSetDisplayMagnification was added in 3.0.0. */ + if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) { + if (R_FAILED((rc = viSetDisplayMagnification(&this->display, 0, 0, display_width, display_height)))) { + return rc; + } } /* Create layer to draw to. */