mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-03 16:29:10 +00:00
Rebuild SDL2 (5dc13016cf) with USE_D3D9EX
This commit is contained in:
parent
37636ef1eb
commit
f2ac570949
7 changed files with 9 additions and 0 deletions
|
@ -168,6 +168,15 @@ bool SdlRenderer::initialize(SDL_Window* window,
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue