diff options
| author | Michael <[email protected]> | 2017-08-09 14:17:51 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-08-09 14:17:51 -0400 |
| commit | cc6fc6c0088ee3b81437254cbaf6241f91b3d95c (patch) | |
| tree | 7cee68e5099db5c35d6872ab47576607835f2976 /ShiftOS.Frontend/GUI/TextControl.cs | |
| parent | 72fe64f28d02cf41aa90b636608421e9b86ab896 (diff) | |
| download | shiftos_thereturn-monogame.tar.gz shiftos_thereturn-monogame.tar.bz2 shiftos_thereturn-monogame.zip | |
stuffmonogame
Diffstat (limited to 'ShiftOS.Frontend/GUI/TextControl.cs')
| -rw-r--r-- | ShiftOS.Frontend/GUI/TextControl.cs | 2 |
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; |
