mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
fatal: update for new-ipc
This commit is contained in:
parent
8d16d2152b
commit
799c158b86
9 changed files with 113 additions and 73 deletions
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include <atmosphere/version.h>
|
||||
#include <malloc.h>
|
||||
|
||||
#include "fatal_task_screen.hpp"
|
||||
#include "fatal_config.hpp"
|
||||
|
@ -101,7 +102,7 @@ namespace sts::fatal::srv {
|
|||
ON_SCOPE_EXIT { viCloseDisplay(&temp_display); };
|
||||
|
||||
/* Turn on the screen. */
|
||||
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) {
|
||||
if (hos::GetVersion() >= hos::Version_300) {
|
||||
R_TRY(viSetDisplayPowerState(&temp_display, ViPowerState_On));
|
||||
} else {
|
||||
/* Prior to 3.0.0, the ViPowerState enum was different (0 = Off, 1 = On). */
|
||||
|
@ -151,7 +152,7 @@ namespace sts::fatal::srv {
|
|||
R_TRY(viGetDisplayLogicalResolution(&this->display, &display_width, &display_height));
|
||||
|
||||
/* viSetDisplayMagnification was added in 3.0.0. */
|
||||
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) {
|
||||
if (hos::GetVersion() >= hos::Version_300) {
|
||||
R_TRY(viSetDisplayMagnification(&this->display, 0, 0, display_width, display_height));
|
||||
}
|
||||
|
||||
|
@ -414,7 +415,6 @@ namespace sts::fatal::srv {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* Enqueue the buffer. */
|
||||
framebufferEnd(&fb);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue