mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +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,9 +117,13 @@ Result ShowFatalTask::PrepareScreenForDrawing() {
|
||||||
if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) {
|
if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) {
|
||||||
return rc;
|
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)))) {
|
if (R_FAILED((rc = viSetDisplayMagnification(&this->display, 0, 0, display_width, display_height)))) {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Create layer to draw to. */
|
/* Create layer to draw to. */
|
||||||
if (R_FAILED((rc = viCreateLayer(&this->display, &this->layer)))) {
|
if (R_FAILED((rc = viCreateLayer(&this->display, &this->layer)))) {
|
||||||
|
|
Loading…
Reference in a new issue