aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/TextControl.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-08-09 14:17:51 -0400
committerMichael <[email protected]>2017-08-09 14:17:51 -0400
commitcc6fc6c0088ee3b81437254cbaf6241f91b3d95c (patch)
tree7cee68e5099db5c35d6872ab47576607835f2976 /ShiftOS.Frontend/GUI/TextControl.cs
parent72fe64f28d02cf41aa90b636608421e9b86ab896 (diff)
downloadshiftos_thereturn-monogame.tar.gz
shiftos_thereturn-monogame.tar.bz2
shiftos_thereturn-monogame.zip
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;