Skip to content

Commit

Permalink
Fix high dpi (again?) (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdanner committed Jan 19, 2021
1 parent 1112466 commit c67db56
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Src/SwqlStudio/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Src/SwqlStudio/SwqlStudio.csproj
Expand Up @@ -20,6 +20,7 @@
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<ApplicationIcon>Main.ico</ApplicationIcon>
<StartupObject />
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions Src/SwqlStudio/app.config
Expand Up @@ -116,6 +116,9 @@
</setting>
</SwqlStudio.Properties.Settings>
</applicationSettings>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>
<system.serviceModel>
<services>
<service name="SwqlStudio.Subscriptions.NotificationSubscriber" behaviorConfiguration="NotificationSubscriber">
Expand Down
9 changes: 9 additions & 0 deletions Src/SwqlStudio/app.manifest
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
</assembly>

0 comments on commit c67db56

Please sign in to comment.