Minor updates.

This commit is contained in:
wo80
2022-03-04 13:24:51 +01:00
parent ee6f03d5ce
commit 43b424e62d
36 changed files with 198 additions and 327 deletions
+1 -2
View File
@@ -6,7 +6,6 @@
namespace TriangleNet.Rendering.GDI
{
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
@@ -158,7 +157,7 @@ namespace TriangleNet.Rendering.GDI
{
Graphics g = e.Graphics;
g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
g.DrawString(coordinate, this.Font, Brushes.White, 10, 10);
TextRenderer.DrawText(g, coordinate, Font, new Point(10, 10), Color.White);
}
}