[BUG] Round Corners Fail to Show Outline (#238), version 1.0.26.2

This commit is contained in:
Markus Hofknecht 2021-11-14 10:53:57 +01:00
parent 53b2a5082d
commit 1f84df7300
2 changed files with 3 additions and 2 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// 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("1.0.26.1")]
[assembly: AssemblyFileVersion("1.0.26.1")]
[assembly: AssemblyVersion("1.0.26.2")]
[assembly: AssemblyFileVersion("1.0.26.2")]

View file

@ -483,6 +483,7 @@ namespace SystemTrayMenu.UserInterface
if (Properties.Settings.Default.RoundCorners)
{
Region = Region.FromHrgn(NativeMethods.CreateRoundCorners(Width + 1, Height + 1, 15, 15));
tableLayoutPanelMenu.Region = Region.FromHrgn(NativeMethods.CreateRoundCorners(Width - 1, Height - 1, 15, 15));
}
}