mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
Revert "[dxgi] Support multiple outputs per adapter"
This reverts commit 1c86ed8c93e0cca3006c7702012cb5db8e9ca860. Causes build issues on 32-bit platforms.
This commit is contained in:
parent
1c86ed8c93
commit
6848b45c7a
@ -81,18 +81,14 @@ namespace dxvk {
|
||||
if (ppOutput == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
|
||||
MonitorEnumInfo info;
|
||||
info.iMonitorId = Output;
|
||||
info.oMonitor = nullptr;
|
||||
|
||||
::EnumDisplayMonitors(
|
||||
nullptr, nullptr, &MonitorEnumProc,
|
||||
reinterpret_cast<LPARAM>(&info));
|
||||
|
||||
if (info.oMonitor == nullptr)
|
||||
if (Output > 0) {
|
||||
*ppOutput = nullptr;
|
||||
return DXGI_ERROR_NOT_FOUND;
|
||||
}
|
||||
|
||||
*ppOutput = ref(new DxgiOutput(this, info.oMonitor));
|
||||
// TODO support multiple monitors
|
||||
HMONITOR monitor = ::MonitorFromPoint({ 0, 0 }, MONITOR_DEFAULTTOPRIMARY);
|
||||
*ppOutput = ref(new DxgiOutput(this, monitor));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@ -288,19 +284,4 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
BOOL DxgiAdapter::MonitorEnumProc(
|
||||
HMONITOR hmon,
|
||||
HDC hdc,
|
||||
LPRECT rect,
|
||||
LPARAM lp) {
|
||||
auto data = reinterpret_cast<MonitorEnumInfo*>(lp);
|
||||
|
||||
if (data->iMonitorId--)
|
||||
return TRUE; /* continue */
|
||||
|
||||
data->oMonitor = hmon;
|
||||
return FALSE; /* stop */
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -85,17 +85,6 @@ namespace dxvk {
|
||||
std::mutex m_outputMutex;
|
||||
OutputMap m_outputData;
|
||||
|
||||
struct MonitorEnumInfo {
|
||||
UINT iMonitorId;
|
||||
HMONITOR oMonitor;
|
||||
};
|
||||
|
||||
static BOOL MonitorEnumProc(
|
||||
HMONITOR hmon,
|
||||
HDC hdc,
|
||||
LPRECT rect,
|
||||
LPARAM lp);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user