aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Desktop/WindowManager.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/Desktop/WindowManager.cs
parent72fe64f28d02cf41aa90b636608421e9b86ab896 (diff)
downloadshiftos_thereturn-monogame.tar.gz
shiftos_thereturn-monogame.tar.bz2
shiftos_thereturn-monogame.zip
Diffstat (limited to 'ShiftOS.Frontend/Desktop/WindowManager.cs')
-rw-r--r--ShiftOS.Frontend/Desktop/WindowManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShiftOS.Frontend/Desktop/WindowManager.cs b/ShiftOS.Frontend/Desktop/WindowManager.cs
index b130b03..60f9e26 100644
--- a/ShiftOS.Frontend/Desktop/WindowManager.cs
+++ b/ShiftOS.Frontend/Desktop/WindowManager.cs
@@ -348,7 +348,7 @@ namespace ShiftOS.Frontend.Desktop
gfx.DrawRectangle(titlebarleft, 0, titlebarwidth, titleheight, UIManager.SkinTextures["titlebar"]);
}
//Now we draw the title text.
- var textMeasure = gfx.MeasureString(Text, titlefont);
+ var textMeasure = GraphicsContext.MeasureString(Text, titlefont);
PointF textloc;
if (titletextcentered)
textloc = new PointF((titlebarwidth - textMeasure.X) / 2,