mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
fatal: only set display magnification on 3.0.0+
This commit is contained in:
parent
e25d83f701
commit
e62606d276
1 changed files with 6 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue