aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/OVR_Win32_HMDDevice.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-20 04:57:46 +0200
committerSven Gothel <[email protected]>2014-06-20 04:57:46 +0200
commit70e44b846ceaf9eebc336b12a07406c3a418a5c3 (patch)
tree5a0d3c350b66c20529a059f67c7833683c4cae61 /LibOVR/Src/OVR_Win32_HMDDevice.cpp
parentda82e664d359c540e96e4602fd5980003bff3e5c (diff)
Enable compatibility w/ gcc/mingw64
These changes enable gcc/mingw64 compatibility. Besides adding fixes of my own, the following changes were considered: https://github.com/parasti/OculusSDK-MinGW/commit/8fa94f4cc1d7e9d34a1908a4d69df52e5d998a20 https://github.com/parasti/OculusSDK-MinGW/commit/b4681523477b15bea94379eb11b17be9daa7ac17 https://github.com/larspensjo/OculusSDK-MinGW/commit/213118fdc1798a54b4efb930c3427b694abd8b31 Big KUDOS to - Jānis Rūcis aka 'parasti' - Lars Pensjö aka 'larspensjo'
Diffstat (limited to 'LibOVR/Src/OVR_Win32_HMDDevice.cpp')
-rw-r--r--LibOVR/Src/OVR_Win32_HMDDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibOVR/Src/OVR_Win32_HMDDevice.cpp b/LibOVR/Src/OVR_Win32_HMDDevice.cpp
index e16a060..c0fc5ae 100644
--- a/LibOVR/Src/OVR_Win32_HMDDevice.cpp
+++ b/LibOVR/Src/OVR_Win32_HMDDevice.cpp
@@ -297,7 +297,7 @@ void HMDDeviceFactory::EnumerateDevices(EnumerateVisitor& visitor)
{
info.cbSize = sizeof(MONITORINFOEX);
GetMonitorInfo(monitors.Monitors[m], &info);
- if (_tcsstr(ddm.DeviceName, info.szDevice) == ddm.DeviceName)
+ if (wcsstr(ddm.DeviceName, info.szDevice) == ddm.DeviceName)
{ // If the device name starts with the monitor name
// then we found the matching DISPLAY_DEVICE and MONITORINFO
// so we can gather the monitor coordinates