mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Fix hover frost missing pixel
add alternate coloration for a slot that already has a background color
This commit is contained in:
parent
2ab805ba98
commit
431c0fc205
2 changed files with 1 additions and 2 deletions
|
@ -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 |
Loading…
Reference in a new issue