summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2013-07-07 02:04:00 +1000
committerwm4 <wm4@nowhere>2013-07-14 16:10:23 +0200
commit3e7d483ac89289f613138002be2043ec5f479bb0 (patch)
tree40378d1b4160d1e8f3a4e70ea3abaa3b8482a11a /osdep
parent5e6b96f1ff43a0a077a1a53537f05772f2967f71 (diff)
downloadmpv-3e7d483ac89289f613138002be2043ec5f479bb0.tar.bz2
mpv-3e7d483ac89289f613138002be2043ec5f479bb0.tar.xz
w32: update manifest for high DPI and Windows 8.1
Since Windows Vista, when running at 144 DPI or higher with composition switched on, applications that don't declare themselves to be DPI aware are stretched by the window manager, kind of like low resolution apps in OSX. To avoid this, declare DPI awareness in the manifest. Since mpv is practically resolution independent this shouldn't cause any trouble. The 'True/PM' value declares per-monitor DPI awareness in Windows 8.1, so that the mpv isn't shrunk when moved from a high DPI screen to one with a lower DPI. Also, avoid compatibility shims by declaring compatibility with all Windows versions from Vista to 8.1 and add the missing uiAccess attribute to the requestedExecutionLevel element.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/mpv.exe.manifest18
1 files changed, 18 insertions, 0 deletions
diff --git a/osdep/mpv.exe.manifest b/osdep/mpv.exe.manifest
index c924377c4b..c30993e80c 100644
--- a/osdep/mpv.exe.manifest
+++ b/osdep/mpv.exe.manifest
@@ -7,13 +7,31 @@
type="win32"
/>
<description>mpv - The Movie Player</description>
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings xmlns:ws="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+ <ws:dpiAware>True/PM</ws:dpiAware>
+ </windowsSettings>
+ </application>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
+ uiAccess="false"
/>
</requestedPrivileges>
</security>
</trustInfo>
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!-- Windows 8.1 -->
+ <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
+ <!-- Windows 8 -->
+ <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
+ <!-- Windows 7 -->
+ <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
+ <!-- Windows Vista -->
+ <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
+ </application>
+ </compatibility>
</assembly>