From d39112e9b9714b9c9dcadcdddf93ee2aaa3bad0f Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Wed, 11 Jan 2023 00:19:09 +0530 Subject: [PATCH] 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. --- .../cpp/skyline/services/visrv/IApplicationDisplayService.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/visrv/IApplicationDisplayService.h b/app/src/main/cpp/skyline/services/visrv/IApplicationDisplayService.h index cba171b7..ab2a1a66 100644 --- a/app/src/main/cpp/skyline/services/visrv/IApplicationDisplayService.h +++ b/app/src/main/cpp/skyline/services/visrv/IApplicationDisplayService.h @@ -18,7 +18,7 @@ namespace skyline::service::visrv { /** * @brief Specifies the method to scale up the layer content to its bounds */ - enum class ScalingMode { + enum class ScalingMode : u64 { Freeze = 0, ScaleToLayer = 1, ScaleAndCrop = 2, @@ -112,6 +112,7 @@ namespace skyline::service::visrv { SFUNC_BASE(0x7EE, IApplicationDisplayService, IDisplayService, CreateStrayLayer), SFUNC_BASE(0x7EF, IApplicationDisplayService, IDisplayService, DestroyStrayLayer), SFUNC(0x835, IApplicationDisplayService, SetLayerScalingMode), + SFUNC(0x836, IApplicationDisplayService, ConvertScalingMode), SFUNC(0x1452, IApplicationDisplayService, GetDisplayVsyncEvent) ) };