From 60fecee1eceb11c3e2146012831150dd01e07f1a Mon Sep 17 00:00:00 2001 From: David Marcec Date: Mon, 19 Nov 2018 15:20:47 +1100 Subject: Removed hard coded values for width and height --- src/core/hle/service/vi/vi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/hle/service/vi/vi.cpp') 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(1280 * Settings::values.resolution_factor), - static_cast(720 * Settings::values.resolution_factor)}; + static_cast(static_cast(DisplayResolution::UndockedWidth) * + Settings::values.resolution_factor), + static_cast(static_cast(DisplayResolution::UndockedHeight) * + Settings::values.resolution_factor)}; ctx.WriteBuffer(response.Serialize()); } else if (transaction == TransactionId::SetPreallocatedBuffer) { IGBPSetPreallocatedBufferRequestParcel request{ctx.ReadBuffer()}; -- cgit v1.2.3