Fix hover frost missing pixel

add alternate coloration for a slot that already has a background color
This commit is contained in:
Kurt 2017-11-30 20:35:45 -08:00
parent 2ab805ba98
commit 431c0fc205
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,6 @@ using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using PKHeX.Core;
@ -48,7 +47,7 @@ namespace PKHeX.WinForms.Controls
if (pb.Image == null)
return;
OriginalBackground = pb.BackgroundImage;
pb.BackgroundImage = CurrentBackground = Resources.slotHover;
pb.BackgroundImage = CurrentBackground = pb.BackgroundImage == null ? Resources.slotHover : ImageUtil.LayerImage(pb.BackgroundImage, Resources.slotHover, 0, 0, 1);
if (!DragActive)
SetCursor(Cursors.Hand, sender);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB