From a598de6573e9195043bebe073aeaf5bd931b0ef1 Mon Sep 17 00:00:00 2001
From: ElektroKill <elektrokilldev@protonmail.com>
Date: Thu, 14 Dec 2023 21:37:46 +0100
Subject: [PATCH] Enable hardware acceleration in RDP for dnSpy UI

---
 dnSpy/dnSpy/dnSpy.csproj | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dnSpy/dnSpy/dnSpy.csproj b/dnSpy/dnSpy/dnSpy.csproj
index 526e04342f..d22e7b4249 100644
--- a/dnSpy/dnSpy/dnSpy.csproj
+++ b/dnSpy/dnSpy/dnSpy.csproj
@@ -25,6 +25,10 @@
     <ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
   </PropertyGroup>
 
+  <ItemGroup>
+    <RuntimeHostConfigurationOption Include="Switch.System.Windows.Media.EnableHardwareAccelerationInRdp" Value="true" />
+  </ItemGroup>
+
   <PropertyGroup>
     <ApplicationIcon>Images\dnSpy.ico</ApplicationIcon>
     <ApplicationManifest>app.manifest</ApplicationManifest>