From cc6fc6c0088ee3b81437254cbaf6241f91b3d95c Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 9 Aug 2017 14:17:51 -0400 Subject: stuff --- ShiftOS.Frontend/GUI/TextControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShiftOS.Frontend/GUI/TextControl.cs') 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; -- cgit v1.2.3