mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fixed possible memory leack with clock ticks
This commit is contained in:
@@ -287,7 +287,7 @@ namespace Starlight.AnimeMatrix
|
|||||||
{
|
{
|
||||||
|
|
||||||
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
|
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
|
||||||
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
|
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
|
||||||
SizeF textSize = g.MeasureString(text, font);
|
SizeF textSize = g.MeasureString(text, font);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -282,8 +282,9 @@ namespace GHelper
|
|||||||
Program.config.setConfig("matrix_auto", check.Checked ? 1 : 0);
|
Program.config.setConfig("matrix_auto", check.Checked ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void StartMatrixTimer()
|
private static void StartMatrixTimer(int interval = 100)
|
||||||
{
|
{
|
||||||
|
matrixTimer.Interval = interval;
|
||||||
matrixTimer.Enabled = true;
|
matrixTimer.Enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -443,7 +444,7 @@ namespace GHelper
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
mat.SetBuiltInAnimation(false);
|
mat.SetBuiltInAnimation(false);
|
||||||
StartMatrixTimer();
|
StartMatrixTimer(1000);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
mat.SetBuiltInAnimation(true, animation);
|
mat.SetBuiltInAnimation(true, animation);
|
||||||
|
|||||||
Reference in New Issue
Block a user