summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-01-05 00:43:15 +0100
committerLioncash <mathew1800@gmail.com>2019-01-05 01:13:32 +0100
commitbf036b46fc74fc295ce24431bee3d0320c3a6576 (patch)
treeafccec44a81839b6a8f80b1912b3c13b826da48a /src/core/hle/service/vi
parentMerge pull request #1984 from ogniK5377/remove-pulse (diff)
downloadyuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar.gz
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar.bz2
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar.lz
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar.xz
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.tar.zst
yuzu-bf036b46fc74fc295ce24431bee3d0320c3a6576.zip
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r--src/core/hle/service/vi/vi.cpp20
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:
IPC::RequestParser rp{ctx};
const u64 display_id = rp.Pop<u64>();
- LOG_WARNING(Service_VI, "(STUBBED) called. display_id=0x{:016X}", display_id);
+ LOG_DEBUG(Service_VI, "called. display_id=0x{:016X}", display_id);
IPC::ResponseBuilder rb{ctx, 6};
rb.Push(RESULT_SUCCESS);
- if (Settings::values.use_docked_mode) {
- rb.Push(static_cast<u64>(DisplayResolution::DockedWidth) *
- static_cast<u32>(Settings::values.resolution_factor));
- rb.Push(static_cast<u64>(DisplayResolution::DockedHeight) *
- static_cast<u32>(Settings::values.resolution_factor));
- } else {
- rb.Push(static_cast<u64>(DisplayResolution::UndockedWidth) *
- static_cast<u32>(Settings::values.resolution_factor));
- rb.Push(static_cast<u64>(DisplayResolution::UndockedHeight) *
- static_cast<u32>(Settings::values.resolution_factor));
- }
+ // This only returns the fixed values of 1280x720 and makes no distinguishing
+ // between docked and undocked dimensions. We take the liberty of applying
+ // the resolution scaling factor here.
+ rb.Push(static_cast<u64>(DisplayResolution::UndockedWidth) *
+ static_cast<u32>(Settings::values.resolution_factor));
+ rb.Push(static_cast<u64>(DisplayResolution::UndockedHeight) *
+ static_cast<u32>(Settings::values.resolution_factor));
}
void SetLayerScalingMode(Kernel::HLERequestContext& ctx) {