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/Apps/SkinLoader.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/Apps/SkinLoader.cs')
| -rw-r--r-- | ShiftOS.Frontend/Apps/SkinLoader.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ShiftOS.Frontend/Apps/SkinLoader.cs b/ShiftOS.Frontend/Apps/SkinLoader.cs index 8711d92..b89952e 100644 --- a/ShiftOS.Frontend/Apps/SkinLoader.cs +++ b/ShiftOS.Frontend/Apps/SkinLoader.cs @@ -93,7 +93,7 @@ namespace ShiftOS.Frontend.Apps gfx.DrawRectangle(titlebarleft, _windowystart, titlebarwidth, titleheight, SkinTextures["titlebar"]); } //Now we draw the title text. - var textMeasure = gfx.MeasureString("Program window", titlefont); + var textMeasure = GraphicsContext.MeasureString("Program window", titlefont); Vector2 textloc; if (titletextcentered) textloc = new Vector2((titlebarwidth - textMeasure.X) / 2, @@ -363,7 +363,7 @@ namespace ShiftOS.Frontend.Apps { gfx.DrawRectangle(al_left.X, dp_position + al_left.Y, holderSize.Width, holderSize.Height, SkinTextures["applauncher"]); } - var altextmeasure = gfx.MeasureString(_skin.AppLauncherText, _skin.AppLauncherFont); + var altextmeasure = GraphicsContext.MeasureString(_skin.AppLauncherText, _skin.AppLauncherFont); int altextx = _previewxstart + (holderSize.Width - (int)altextmeasure.X) / 2; int altexty = _desktopystart + (holderSize.Height - (int)altextmeasure.Y) / 2; gfx.DrawString(_skin.AppLauncherText, altextx, altexty, _skin.AppLauncherTextColor.ToMonoColor(), _skin.AppLauncherFont); @@ -373,7 +373,7 @@ namespace ShiftOS.Frontend.Apps var panelClockTextColor = _skin.DesktopPanelClockColor.ToMonoColor(); string dateTimeString = "00:00:00 - localhost"; - var measure = gfx.MeasureString(dateTimeString, _skin.DesktopPanelClockFont); + var measure = GraphicsContext.MeasureString(dateTimeString, _skin.DesktopPanelClockFont); int panelclockleft = _previewxstart + (dp_width - (int)measure.X); int panelclockwidth = (dp_width - panelclockleft); |
