Skip to content
Permalink
Browse files
Update to 3.9.4
Fixed a crash when restoring window; removed AltGr
  • Loading branch information
randyrants committed Apr 4, 2022
1 parent 9f3de05 commit c0f750a2f487f0ee0563a7adf5123795031ba5a7
Showing with 21 additions and 10 deletions.
  1. +1 −1 SharpKeys/AssemblyInfo.cs
  2. +15 −5 SharpKeys/Dialog_Main.cs
  3. +4 −3 SharpKeys/SharpKeys.csproj
  4. +1 −1 SharpKeys/app.config
@@ -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")]
@@ -6,6 +6,7 @@
using System.ComponentModel;
using System.IO;
using Microsoft.Win32;
using System.Runtime.CompilerServices;

namespace SharpKeys
{
@@ -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
//
@@ -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");
@@ -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);
@@ -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);
@@ -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>
@@ -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>
@@ -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>

0 comments on commit c0f750a

Please sign in to comment.