1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

fatal: use new vi enum value

This commit is contained in:
Michael Scire 2019-08-07 13:02:02 -07:00
parent 5c140b4f35
commit 1f2de35f94

View file

@ -105,8 +105,7 @@ namespace sts::fatal::srv {
R_TRY(viSetDisplayPowerState(&temp_display, ViPowerState_On));
} else {
/* Prior to 3.0.0, the ViPowerState enum was different (0 = Off, 1 = On). */
/* In lieu of a ViPowerState_OnDeprecated entry, just send the correct value manually. */
R_TRY(viSetDisplayPowerState(&temp_display, static_cast<ViPowerState>(1)));
R_TRY(viSetDisplayPowerState(&temp_display, ViPowerState_On_Deprecated));
}
/* Set alpha to 1.0f. */