Enable IApplicationDisplayService::ConvertScalingMode implementation

The implementation for this service function wasn't added to the service function table. Additionally, the type for the output `ScalingMode` was implicitly `int` as it was unspecified in the `enum class` which has now been corrected to `u64` as it should be.
This commit is contained in:
PixelyIon 2023-01-11 00:19:09 +05:30
parent 45d0558d00
commit d39112e9b9

View File

@ -18,7 +18,7 @@ namespace skyline::service::visrv {
/** /**
* @brief Specifies the method to scale up the layer content to its bounds * @brief Specifies the method to scale up the layer content to its bounds
*/ */
enum class ScalingMode { enum class ScalingMode : u64 {
Freeze = 0, Freeze = 0,
ScaleToLayer = 1, ScaleToLayer = 1,
ScaleAndCrop = 2, ScaleAndCrop = 2,
@ -112,6 +112,7 @@ namespace skyline::service::visrv {
SFUNC_BASE(0x7EE, IApplicationDisplayService, IDisplayService, CreateStrayLayer), SFUNC_BASE(0x7EE, IApplicationDisplayService, IDisplayService, CreateStrayLayer),
SFUNC_BASE(0x7EF, IApplicationDisplayService, IDisplayService, DestroyStrayLayer), SFUNC_BASE(0x7EF, IApplicationDisplayService, IDisplayService, DestroyStrayLayer),
SFUNC(0x835, IApplicationDisplayService, SetLayerScalingMode), SFUNC(0x835, IApplicationDisplayService, SetLayerScalingMode),
SFUNC(0x836, IApplicationDisplayService, ConvertScalingMode),
SFUNC(0x1452, IApplicationDisplayService, GetDisplayVsyncEvent) SFUNC(0x1452, IApplicationDisplayService, GetDisplayVsyncEvent)
) )
}; };