From e12d1cecf030e7965808aa3ed87aa2bc1f1fa527 Mon Sep 17 00:00:00 2001 From: HunterCZ122 Date: Thu, 30 Jan 2025 20:29:15 +0100 Subject: [PATCH] [util] Fix black screen after alt-tab for Trainz --- src/util/config/config.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index e1acf7d4ac3..c30276033cb 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -1194,6 +1194,11 @@ namespace dxvk { { "d3d8.scaleDref", "24" }, { "d3d9.deviceLossOnFocusLoss", "True" }, }} }, + /* Trainz v1.3 (2001) * + * Fixes black screen after alt-tab */ + { R"(\\bin\\trainz\.exe$)", {{ + { "d3d9.deviceLossOnFocusLoss", "True" }, + }} }, }};