diff options
| author | 2019-01-05 00:26:29 -0500 | |
|---|---|---|
| committer | 2019-01-05 00:26:29 -0500 | |
| commit | 59c665b28eccdbfc49ce9dcfad8cbeb3cea19f37 (patch) | |
| tree | fa4a50a1cf70c210202b2c41c163b2b362bf9ded /src | |
| parent | Merge pull request #1981 from ogniK5377/open-app-area-create (diff) | |
| parent | service/vi: Correct reported dimensions from IApplicationDisplayService's Get... (diff) | |
| download | yuzu-59c665b28eccdbfc49ce9dcfad8cbeb3cea19f37.tar.gz yuzu-59c665b28eccdbfc49ce9dcfad8cbeb3cea19f37.tar.xz yuzu-59c665b28eccdbfc49ce9dcfad8cbeb3cea19f37.zip | |
Merge pull request #1988 from lioncash/res
service/vi: Correct reported dimensions from IApplicationDisplayService's GetDisplayResolution()
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 8528925ec..1bdf19e13 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -958,22 +958,18 @@ private: | |||
| 958 | IPC::RequestParser rp{ctx}; | 958 | IPC::RequestParser rp{ctx}; |
| 959 | const u64 display_id = rp.Pop<u64>(); | 959 | const u64 display_id = rp.Pop<u64>(); |
| 960 | 960 | ||
| 961 | LOG_WARNING(Service_VI, "(STUBBED) called. display_id=0x{:016X}", display_id); | 961 | LOG_DEBUG(Service_VI, "called. display_id=0x{:016X}", display_id); |
| 962 | 962 | ||
| 963 | IPC::ResponseBuilder rb{ctx, 6}; | 963 | IPC::ResponseBuilder rb{ctx, 6}; |
| 964 | rb.Push(RESULT_SUCCESS); | 964 | rb.Push(RESULT_SUCCESS); |
| 965 | 965 | ||
| 966 | if (Settings::values.use_docked_mode) { | 966 | // This only returns the fixed values of 1280x720 and makes no distinguishing |
| 967 | rb.Push(static_cast<u64>(DisplayResolution::DockedWidth) * | 967 | // between docked and undocked dimensions. We take the liberty of applying |
| 968 | static_cast<u32>(Settings::values.resolution_factor)); | 968 | // the resolution scaling factor here. |
| 969 | rb.Push(static_cast<u64>(DisplayResolution::DockedHeight) * | 969 | rb.Push(static_cast<u64>(DisplayResolution::UndockedWidth) * |
| 970 | static_cast<u32>(Settings::values.resolution_factor)); | 970 | static_cast<u32>(Settings::values.resolution_factor)); |
| 971 | } else { | 971 | rb.Push(static_cast<u64>(DisplayResolution::UndockedHeight) * |
| 972 | rb.Push(static_cast<u64>(DisplayResolution::UndockedWidth) * | 972 | static_cast<u32>(Settings::values.resolution_factor)); |
| 973 | static_cast<u32>(Settings::values.resolution_factor)); | ||
| 974 | rb.Push(static_cast<u64>(DisplayResolution::UndockedHeight) * | ||
| 975 | static_cast<u32>(Settings::values.resolution_factor)); | ||
| 976 | } | ||
| 977 | } | 973 | } |
| 978 | 974 | ||
| 979 | void SetLayerScalingMode(Kernel::HLERequestContext& ctx) { | 975 | void SetLayerScalingMode(Kernel::HLERequestContext& ctx) { |