mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Fix #2072
Just a guess; don't dispose of the bitmaps suspected race where two beginhovers happen and one cancels the other
This commit is contained in:
parent
68d251f89c
commit
d6f623ecfb
1 changed files with 7 additions and 5 deletions
|
@ -15,9 +15,12 @@ namespace PKHeX.WinForms.Controls
|
||||||
Elapsed += TimerElapsed;
|
Elapsed += TimerElapsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly Bitmap GlowBase;
|
private Bitmap GlowBase;
|
||||||
private readonly Bitmap ExtraLayer;
|
private Bitmap ExtraLayer;
|
||||||
private Bitmap[] GlowCache;
|
private Bitmap[] GlowCache;
|
||||||
|
public Image OriginalBackground;
|
||||||
|
|
||||||
|
private PictureBox pb;
|
||||||
private int GlowInterval;
|
private int GlowInterval;
|
||||||
private int GlowCounter;
|
private int GlowCounter;
|
||||||
|
|
||||||
|
@ -38,11 +41,10 @@ namespace PKHeX.WinForms.Controls
|
||||||
{
|
{
|
||||||
Enabled = false;
|
Enabled = false;
|
||||||
pb.BackgroundImage = OriginalBackground;
|
pb.BackgroundImage = OriginalBackground;
|
||||||
GlowBase.Dispose();
|
GlowBase = ExtraLayer = null;
|
||||||
|
OriginalBackground = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private PictureBox pb;
|
|
||||||
public Image OriginalBackground;
|
|
||||||
public void Start(PictureBox pbox, Image original)
|
public void Start(PictureBox pbox, Image original)
|
||||||
{
|
{
|
||||||
pb = pbox;
|
pb = pbox;
|
||||||
|
|
Loading…
Reference in a new issue