#include #include namespace dxvk::wsi { inline SDL_Window* fromHwnd(HWND hWindow) { return reinterpret_cast(hWindow); } inline HWND toHwnd(SDL_Window* pWindow) { return reinterpret_cast(pWindow); } // Offset so null HMONITORs go to -1 inline SDL_DisplayID fromHmonitor(HMONITOR hMonitor) { return SDL_DisplayID(reinterpret_cast(hMonitor)); } // Offset so -1 display id goes to 0 == NULL inline HMONITOR toHmonitor(SDL_DisplayID display) { return reinterpret_cast(uintptr_t(display)); } }