Clear background on draw

This commit is contained in:
CreepyCrafter24 2019-11-30 21:45:31 +01:00
parent 2520b44537
commit 527591ce45
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ namespace PowerCalc
try
{
Graphics g = e.Graphics;
g.Clear(Color.White);
List<Tuple<Color, List<PointF>, Expression>> lines = new List<Tuple<Color, List<PointF>, Expression>>
{
new Tuple<Color, List<PointF>, Expression>(Color.Red, new List<PointF>(), new Expression(calcBox1.Text)),