From 953858b0e783b10ba5a389f18b1775760484d1a3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 18 Mar 2020 22:26:15 -0700 Subject: [PATCH] Add workaround for Steam Link graphics bug. Fixes #254 --- app/streaming/session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 5dad02a7..835b58ca 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1015,6 +1015,13 @@ void Session::exec(int displayOriginX, int displayOriginY) int x, y, width, height; getWindowDimensions(x, y, width, height); +#ifdef STEAM_LINK + // We need a little delay before creating the window or we will trigger some kind + // of graphics driver bug on Steam Link that causes a jagged overlay to appear in + // the top right corner randomly. + SDL_Delay(500); +#endif + m_Window = SDL_CreateWindow("Moonlight", x, y,