aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/TextControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/GUI/TextControl.cs')
-rw-r--r--ShiftOS.Frontend/GUI/TextControl.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShiftOS.Frontend/GUI/TextControl.cs b/ShiftOS.Frontend/GUI/TextControl.cs
index 1e23680..95d4291 100644
--- a/ShiftOS.Frontend/GUI/TextControl.cs
+++ b/ShiftOS.Frontend/GUI/TextControl.cs
@@ -57,7 +57,7 @@ namespace ShiftOS.Frontend.GUI
protected override void OnPaint(GraphicsContext gfx)
{
- var sMeasure = gfx.MeasureString(_text, _font, Width);
+ var sMeasure = GraphicsContext.MeasureString(_text, _font, Width);
PointF loc = new PointF(2, 2);
float centerH = (Width - sMeasure.X) / 2;
float centerV = (Height - sMeasure.Y) / 2;