Rebuild SDL2 (5dc13016cf) with USE_D3D9EX

This commit is contained in:
Cameron Gutman 2019-03-16 23:50:22 -07:00
parent 37636ef1eb
commit f2ac570949
7 changed files with 9 additions and 0 deletions

View file

@ -168,6 +168,15 @@ bool SdlRenderer::initialize(SDL_Window* window,
return false; return false;
} }
#ifdef Q_OS_WIN32
// For some reason, using Direct3D9Ex breaks this with multi-monitor setups.
// When focus is lost, the window is minimized then immediately restored without
// input focus. This glitches out the renderer and a bunch of other stuff.
// Direct3D9Ex itself seems to have this minimize on focus loss behavior on its
// own, so just disable SDL's handling of the focus loss event.
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
#endif
return true; return true;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.