From 6affd0dec1bb50d2df258e114d20ec848efad6e0 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 17 Mar 2015 12:38:58 +0100 Subject: Fixing DK2 screen parameters for linux, windows and osx --- LibOVR/Src/OVR_Linux_HMDDevice.cpp | 2 +- LibOVR/Src/OVR_OSX_HMDDevice.cpp | 2 +- LibOVR/Src/OVR_Win32_HMDDevice.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LibOVR/Src/OVR_Linux_HMDDevice.cpp b/LibOVR/Src/OVR_Linux_HMDDevice.cpp index 98143d3..f797bd7 100644 --- a/LibOVR/Src/OVR_Linux_HMDDevice.cpp +++ b/LibOVR/Src/OVR_Linux_HMDDevice.cpp @@ -239,7 +239,7 @@ void HMDDeviceFactory::EnumerateDevices(EnumerateVisitor& visitor) // Hard-coded defaults in case the device doesn't have the data itself. if (strstr(device_id, "OVR0003")) { // DK2 prototypes and variants (default to HmdType_DK2) - hmdCreateDesc.SetScreenParameters(mx, my, 1920, 1080, 0.12576f, 0.07074f, 0.12576f*0.5f, 0.0635f ); + hmdCreateDesc.SetScreenParameters(mx, my, 1920, 1080, 0.12576f, 0.07074f, 0.07074f*0.5f, 0.0635f ); } else if (strstr(device_id, "OVR0002")) { // HD Prototypes (default to HmdType_DKHDProto) diff --git a/LibOVR/Src/OVR_OSX_HMDDevice.cpp b/LibOVR/Src/OVR_OSX_HMDDevice.cpp index edf940d..7a9796c 100644 --- a/LibOVR/Src/OVR_OSX_HMDDevice.cpp +++ b/LibOVR/Src/OVR_OSX_HMDDevice.cpp @@ -229,7 +229,7 @@ void HMDDeviceFactory::EnumerateDevices(EnumerateVisitor& visitor) if (product == 3) { // DK2 prototypes and variants (default to HmdType_DK2) hmdCreateDesc.SetScreenParameters(desktop.origin.x, desktop.origin.y, - 1920, 1080, 0.12576f, 0.07074f, 0.12576f*0.5f, 0.0635f ); + 1920, 1080, 0.12576f, 0.07074f, 0.07074f*0.5f, 0.0635f ); } else if (product == 2) { // HD Prototypes (default to HmdType_DKHDProto) diff --git a/LibOVR/Src/OVR_Win32_HMDDevice.cpp b/LibOVR/Src/OVR_Win32_HMDDevice.cpp index c0fc5ae..55a053c 100644 --- a/LibOVR/Src/OVR_Win32_HMDDevice.cpp +++ b/LibOVR/Src/OVR_Win32_HMDDevice.cpp @@ -314,7 +314,7 @@ void HMDDeviceFactory::EnumerateDevices(EnumerateVisitor& visitor) // Hard-coded defaults in case the device doesn't have the data itself. if (wcsstr(ddm.DeviceID, L"OVR0003")) { // DK2 prototypes and variants (default to HmdType_DK2) - hmdCreateDesc.SetScreenParameters(mx, my, 1920, 1080, 0.12576f, 0.07074f, 0.12576f*0.5f, 0.0635f ); + hmdCreateDesc.SetScreenParameters(mx, my, 1920, 1080, 0.12576f, 0.07074f, 0.07074f*0.5f, 0.0635f ); } else if (wcsstr(ddm.DeviceID, L"OVR0002")) { // HD Prototypes (default to HmdType_DKHDProto) -- cgit v1.2.3