summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar David Marcec2018-11-19 15:20:47 +1100
committerGravatar David Marcec2018-11-19 15:20:47 +1100
commit60fecee1eceb11c3e2146012831150dd01e07f1a (patch)
treea4eccb8db734127d4ffc604f39b6b7c3c567f465 /src
parentReport resolution scaling support for vi and am (diff)
downloadyuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.gz
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.tar.xz
yuzu-60fecee1eceb11c3e2146012831150dd01e07f1a.zip
Removed hard coded values for width and height
Diffstat (limited to 'src')
-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:
495 if (transaction == TransactionId::Connect) { 495 if (transaction == TransactionId::Connect) {
496 IGBPConnectRequestParcel request{ctx.ReadBuffer()}; 496 IGBPConnectRequestParcel request{ctx.ReadBuffer()};
497 IGBPConnectResponseParcel response{ 497 IGBPConnectResponseParcel response{
498 static_cast<u32>(1280 * Settings::values.resolution_factor), 498 static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedWidth) *
499 static_cast<u32>(720 * Settings::values.resolution_factor)}; 499 Settings::values.resolution_factor),
500 static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedHeight) *
501 Settings::values.resolution_factor)};
500 ctx.WriteBuffer(response.Serialize()); 502 ctx.WriteBuffer(response.Serialize());
501 } else if (transaction == TransactionId::SetPreallocatedBuffer) { 503 } else if (transaction == TransactionId::SetPreallocatedBuffer) {
502 IGBPSetPreallocatedBufferRequestParcel request{ctx.ReadBuffer()}; 504 IGBPSetPreallocatedBufferRequestParcel request{ctx.ReadBuffer()};