mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-26 08:45:34 +00:00
Fixing Alt-Enter handling, submitted by Nader Golbaz
I encountered a little issue: DXGI monitors application's message queue and this behavior interferes with SDL if the application already handles Alt-Enter sequence. I think it is necessary to disable this behavior. http://msdn.microsoft.com/en-us/library/windows/desktop/bb174540%28v=vs.85%29.aspx
This commit is contained in:
parent
119dff5546
commit
3317e4340d
|
@ -1447,6 +1447,8 @@ D3D11_CreateSwapChain(SDL_Renderer * renderer, int w, int h)
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__ ", IDXGIFactory2::CreateSwapChainForHwnd", result);
|
WIN_SetErrorFromHRESULT(__FUNCTION__ ", IDXGIFactory2::CreateSwapChainForHwnd", result);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IDXGIFactory_MakeWindowAssociation(data->dxgiFactory, windowinfo.info.win.window, DXGI_MWA_NO_WINDOW_CHANGES);
|
||||||
#else
|
#else
|
||||||
SDL_SetError(__FUNCTION__", Unable to find something to attach a swap chain to");
|
SDL_SetError(__FUNCTION__", Unable to find something to attach a swap chain to");
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue