From ad11c5babb0ff89647dd606392ed7907a20277c7 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 18 Dec 2021 17:12:46 +0100 Subject: [PATCH] Set DPI awareness for Windows Add a windows manifest to set the DPI awareness by default: Refs #40 Fixes #2865 --- app/scrcpy-windows.manifest | 9 +++++++++ app/scrcpy-windows.rc | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/scrcpy-windows.manifest diff --git a/app/scrcpy-windows.manifest b/app/scrcpy-windows.manifest new file mode 100644 index 00000000..f2708ecb --- /dev/null +++ b/app/scrcpy-windows.manifest @@ -0,0 +1,9 @@ + + + + + true + PerMonitorV2 + + + diff --git a/app/scrcpy-windows.rc b/app/scrcpy-windows.rc index 8e3a585e..7525d092 100644 --- a/app/scrcpy-windows.rc +++ b/app/scrcpy-windows.rc @@ -1,5 +1,8 @@ +#include + 0 ICON "../data/icon.ico" -1 VERSIONINFO +1 RT_MANIFEST "scrcpy-windows.manifest" +2 VERSIONINFO BEGIN BLOCK "StringFileInfo" BEGIN