mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[d3d9] Ifdef out code for enumerating adapters by attached displays
This commit is contained in:
parent
bf99127ee3
commit
0e4e9355cb
@ -20,6 +20,7 @@ namespace dxvk {
|
|||||||
// If we run out of adapters, then we'll just make repeats of the first one.
|
// If we run out of adapters, then we'll just make repeats of the first one.
|
||||||
// We can't match up by names on Linux/Wine as they don't match at all
|
// We can't match up by names on Linux/Wine as they don't match at all
|
||||||
// like on Windows, so this is our best option.
|
// like on Windows, so this is our best option.
|
||||||
|
#ifdef _WIN32
|
||||||
if (m_d3d9Options.enumerateByDisplays) {
|
if (m_d3d9Options.enumerateByDisplays) {
|
||||||
DISPLAY_DEVICEA device = { };
|
DISPLAY_DEVICEA device = { };
|
||||||
device.cb = sizeof(device);
|
device.cb = sizeof(device);
|
||||||
@ -44,6 +45,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
const uint32_t adapterCount = m_instance->adapterCount();
|
const uint32_t adapterCount = m_instance->adapterCount();
|
||||||
m_adapters.reserve(adapterCount);
|
m_adapters.reserve(adapterCount);
|
||||||
@ -52,10 +54,12 @@ namespace dxvk {
|
|||||||
m_adapters.emplace_back(this, m_instance->enumAdapters(i), i, 0);
|
m_adapters.emplace_back(this, m_instance->enumAdapters(i), i, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
if (m_d3d9Options.dpiAware) {
|
if (m_d3d9Options.dpiAware) {
|
||||||
Logger::info("Process set as DPI aware");
|
Logger::info("Process set as DPI aware");
|
||||||
SetProcessDPIAware();
|
SetProcessDPIAware();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user