Skip to content

Commit

Permalink
Zoom properly on high dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyi781 committed May 29, 2023
1 parent 025ea85 commit b8dc179
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dungeons/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/>
</startup>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2"/>
Expand Down
2 changes: 1 addition & 1 deletion Dungeons/Dungeons.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>Dungeons</RootNamespace>
<AssemblyName>Dungeons</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<LangVersion>latest</LangVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
1 change: 1 addition & 0 deletions Dungeons/MapForm.Designer.cs

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

2 changes: 1 addition & 1 deletion Dungeons/MapForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void UpdateMap()
if (MapReader.IsValidInGameMap(bmp))
{
FloorSize = floorSize;
mapPictureBox.Size = mapSize;
mapPictureBox.Size = LogicalToDeviceUnits(mapSize);
timer.Start();
if (mapPictureBox.Image != null)
mapPictureBox.Image.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion Dungeons/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.2.0")]
[assembly: AssemblyVersion("3.3.3.0")]
[assembly: AssemblyDescription("Augmented dungeoneering.")]
2 changes: 1 addition & 1 deletion Dungeons/Properties/Resources.Designer.cs

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

2 changes: 1 addition & 1 deletion Dungeons/Properties/Settings.Designer.cs

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

0 comments on commit b8dc179

Please sign in to comment.