Skip to content

Commit

Permalink
Update to 3.9.4
Browse files Browse the repository at this point in the history
Fixed a crash when restoring window; removed AltGr
  • Loading branch information
randyrants committed Apr 4, 2022
1 parent 9f3de05 commit c0f750a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SharpKeys/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("3.9.3.0")]
[assembly: AssemblyVersion("3.9.4.0")]
20 changes: 15 additions & 5 deletions SharpKeys/Dialog_Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.ComponentModel;
using System.IO;
using Microsoft.Win32;
using System.Runtime.CompilerServices;

namespace SharpKeys
{
Expand Down Expand Up @@ -290,7 +291,7 @@ private void InitializeComponent()
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(522, 25);
this.label1.TabIndex = 9;
this.label1.Text = "SharpKeys 3.9.3 - Copyright 2004 - 2022 RandyRants.com";
this.label1.Text = "SharpKeys 3.9.4 - Copyright 2004 - 2022 RandyRants.com";
//
// label2
//
Expand Down Expand Up @@ -1033,7 +1034,6 @@ private void BuildParseTables()
m_hashKeys.Add("E0_1F", "Unknown: 0xE01F");

m_hashKeys.Add("E0_20", "Media: Mute");
m_hashKeys.Add("E0_2038", "Special: Alt Gr");
m_hashKeys.Add("E0_21", "App: Calculator");
m_hashKeys.Add("E0_22", "Media: Play/Pause");
m_hashKeys.Add("E0_23", "F-Lock: Spell");
Expand Down Expand Up @@ -1344,9 +1344,14 @@ private void Dialog_Main_Paint(object sender, PaintEventArgs e)
return;
}

Graphics graphics = e.Graphics;

Rectangle rectangle = new Rectangle(0, 0, this.Width, this.Height);

if ((rectangle.Width <= 0) && (rectangle.Height <= 0))
{
return;
}

Graphics graphics = e.Graphics;
LinearGradientBrush linearGradientBrush = new LinearGradientBrush(rectangle,
Color.FromArgb(188, 188, 188), Color.FromArgb(225, 225, 225),
LinearGradientMode.ForwardDiagonal);
Expand All @@ -1361,9 +1366,14 @@ private void mainPanel_Paint(object sender, PaintEventArgs e)
return;
}

Graphics graphics = e.Graphics;

Rectangle rectangle = new Rectangle(0, 0, mainPanel.Width, mainPanel.Height);
if ((rectangle.Width <= 0) && (rectangle.Height <= 0))
{
return;
}

Graphics graphics = e.Graphics;
LinearGradientBrush linearGradientBrush = new LinearGradientBrush(rectangle,
Color.FromArgb(209, 221, 228), Color.FromArgb(237, 239, 247), //Color.FromArgb(236, 241, 243),
LinearGradientMode.Vertical);
Expand Down
7 changes: 4 additions & 3 deletions SharpKeys/SharpKeys.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
Expand Down Expand Up @@ -32,8 +32,9 @@
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand Down
2 changes: 1 addition & 1 deletion SharpKeys/app.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

1 comment on commit c0f750a

@7evelUp
Copy link

Choose a reason for hiding this comment

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

could you please add a "open Regedit" button to open the log entry where the changes are added?

Please sign in to comment.