Skip to content

Commit

Permalink
Fixing Alt-Enter handling, submitted by Nader Golbaz
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed Mar 24, 2014
1 parent 119dff5 commit 3317e43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render/direct3d11/SDL_render_d3d11.c
Expand Up @@ -1447,6 +1447,8 @@ D3D11_CreateSwapChain(SDL_Renderer * renderer, int w, int h)
WIN_SetErrorFromHRESULT(__FUNCTION__ ", IDXGIFactory2::CreateSwapChainForHwnd", result);
goto done;
}

IDXGIFactory_MakeWindowAssociation(data->dxgiFactory, windowinfo.info.win.window, DXGI_MWA_NO_WINDOW_CHANGES);
#else
SDL_SetError(__FUNCTION__", Unable to find something to attach a swap chain to");
goto done;
Expand Down

0 comments on commit 3317e43

Please sign in to comment.