aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2019-07-01 21:39:22 -0500
committerAc_K <Acoustik666@gmail.com>2019-07-02 04:39:22 +0200
commitb2b736abc2569ab5d8199da666aef8d8394844a0 (patch)
tree88bcc2ae4fb0d4161c95df2cd7edb12388de922a /Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs
parent10c74182babaf8cf6bedaeffd64c3109df4ea816 (diff)
Misc cleanup (#708)
* Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing
Diffstat (limited to 'Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs')
-rw-r--r--Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs b/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs
index e64c9da3..32846977 100644
--- a/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs
+++ b/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs
@@ -36,7 +36,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers
private string GetFontPath()
{
- string fontFolder = System.Environment.GetFolderPath(Environment.SpecialFolder.Fonts);
+ string fontFolder = Environment.GetFolderPath(Environment.SpecialFolder.Fonts);
// Only uses Arial, add more fonts here if wanted
string path = Path.Combine(fontFolder, "arial.ttf");
@@ -48,7 +48,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers
throw new Exception($"Profiler exception. Required font Courier New or Arial not installed to {fontFolder}");
}
- public void InitalizeTextures()
+ public void InitializeTextures()
{
// Create and init some vars
uint[] rawCharacterSheet = new uint[SheetWidth * SheetHeight];
@@ -66,7 +66,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers
// Update raw data for each character
for (int i = 0; i < 94; i++)
{
- var surface = RenderSurface((char)(i + 33), font, out var xBearing, out var yBearing, out var advance);
+ var surface = RenderSurface((char)(i + 33), font, out float xBearing, out float yBearing, out float advance);
characters[i] = UpdateTexture(surface, ref rawCharacterSheet, ref x, ref y, ref lineOffset);
characters[i].BearingX = xBearing;
@@ -217,7 +217,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers
lineOffset = 0;
}
- // Update lineoffset
+ // Update lineOffset
if (lineOffset < height)
{
lineOffset = height + 1;