Skip to content

Commit

Permalink
Disable DPI scaling on Windows
Browse files Browse the repository at this point in the history
Windows DPI scaling prevents using full monitor resolution in
fullscreen mode.
  • Loading branch information
zturtleman committed Sep 8, 2017
1 parent aeaecb4 commit 5f743bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/sys/win_manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>

2 comments on commit 5f743bd

@DexterHaslem
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw this didnt seem to fix mouse issues on windows 10 on high dpi, I had to set compatibility options on the exe to application handled still. I'm looking into if there is a way to do that automatically

@ensiform
Copy link

@ensiform ensiform commented on 5f743bd Dec 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the manifest isn't being embeded properly? These settings definitely work when used properly.

What mouse issues exactly? The mouse isn't going to behave exactly as it did in Windows 98 or XP and 1.32c because of SDL's handling and raw mouse is different sensitivity.

Please sign in to comment.