fatal: only set display magnification on 3.0.0+

This commit is contained in:
Michael Scire 2019-03-06 14:39:48 -08:00
parent e25d83f701
commit e62606d276

View File

@ -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. */