summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-11-19 05:20:47 +0100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-11-19 05:20:47 +0100
commit60fecee1eceb11c3e2146012831150dd01e07f1a (patch)
treea4eccb8db734127d4ffc604f39b6b7c3c567f465 /src/core/hle/service/vi/vi.cpp
parentReport resolution scaling support for vi and am (diff)
downloadyuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.gz
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.bz2
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.lz
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.xz
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.zst
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.zip
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r--src/core/hle/service/vi/vi.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 85c74c516..15b2cddcb 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -495,8 +495,10 @@ private:
if (transaction == TransactionId::Connect) {
IGBPConnectRequestParcel request{ctx.ReadBuffer()};
IGBPConnectResponseParcel response{
- static_cast<u32>(1280 * Settings::values.resolution_factor),
- static_cast<u32>(720 * Settings::values.resolution_factor)};
+ static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedWidth) *
+ Settings::values.resolution_factor),
+ static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedHeight) *
+ Settings::values.resolution_factor)};
ctx.WriteBuffer(response.Serialize());
} else if (transaction == TransactionId::SetPreallocatedBuffer) {
IGBPSetPreallocatedBufferRequestParcel request{ctx.ReadBuffer()};