diff --git a/src/dxgi/dxgi_adapter.cpp b/src/dxgi/dxgi_adapter.cpp index df8c6b541..d947ab447 100644 --- a/src/dxgi/dxgi_adapter.cpp +++ b/src/dxgi/dxgi_adapter.cpp @@ -474,19 +474,4 @@ namespace dxvk { } } - - BOOL CALLBACK DxgiAdapter::MonitorEnumProc( - HMONITOR hmon, - HDC hdc, - LPRECT rect, - LPARAM lp) { - auto data = reinterpret_cast(lp); - - if (data->iMonitorId--) - return TRUE; /* continue */ - - data->oMonitor = hmon; - return FALSE; /* stop */ - } - } diff --git a/src/dxgi/dxgi_adapter.h b/src/dxgi/dxgi_adapter.h index a9a0d2dfb..517254d97 100644 --- a/src/dxgi/dxgi_adapter.h +++ b/src/dxgi/dxgi_adapter.h @@ -123,18 +123,7 @@ namespace dxvk { dxvk::thread m_eventThread; void runEventThread(); - - struct MonitorEnumInfo { - UINT iMonitorId; - HMONITOR oMonitor; - }; - - static BOOL CALLBACK MonitorEnumProc( - HMONITOR hmon, - HDC hdc, - LPRECT rect, - LPARAM lp); - + }; }