Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Commit fa858fa

Browse files
committed
Fix formatting
1 parent 606c197 commit fa858fa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

UI/Debugger/Controls/HexEditor.HexViewDrawOperation.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace Mesen.Debugger.Controls
1414
{
1515
public partial class HexEditor
1616
{
17-
private static (string Name, SKTypeface Typeface)? s_typefaceCache = null;
17+
private static (string Name, SKTypeface Typeface)? s_typefaceCache = null;
1818

19-
private static SKTypeface GetTypeface(string fontFamily)
19+
private static SKTypeface GetCachedTypeface(string fontFamily)
2020
{
21-
if (s_typefaceCache == null || s_typefaceCache.Value.Name != fontFamily) {
21+
if(s_typefaceCache == null || s_typefaceCache.Value.Name != fontFamily) {
2222
s_typefaceCache?.Typeface.Dispose();
2323
s_typefaceCache = (fontFamily, SKTypeface.FromFamilyName(fontFamily));
2424
}
@@ -137,7 +137,7 @@ private void DrawHexView(SKCanvas canvas, Color color)
137137
SKPaint paint = new SKPaint();
138138
paint.Color = new SKColor(ColorHelper.GetColor(color).ToUInt32());
139139

140-
SKTypeface typeface = GetTypeface(_fontFamily);
140+
SKTypeface typeface = GetCachedTypeface(_fontFamily);
141141
SKFont font = new SKFont(typeface, _fontSize);
142142
SetFontProperties(font);
143143

@@ -244,7 +244,7 @@ private void DrawStringView(SKCanvas canvas, Color color)
244244
SKPaint paint = new SKPaint();
245245
paint.Color = new SKColor(ColorHelper.GetColor(color).ToUInt32());
246246

247-
SKTypeface typeface = GetTypeface(_fontFamily);
247+
SKTypeface typeface = GetCachedTypeface(_fontFamily);
248248
SKFont monoFont = new SKFont(typeface, _fontSize);
249249
SetFontProperties(monoFont);
250250

@@ -485,7 +485,7 @@ public void Render(ImmediateDrawingContext context)
485485
SKPaint paint = new SKPaint();
486486
paint.Color = new SKColor(ColorHelper.GetColor(_headerForeground).ToUInt32());
487487

488-
SKTypeface typeface = GetTypeface(_fontFamily);
488+
SKTypeface typeface = GetCachedTypeface(_fontFamily);
489489
SKFont font = new SKFont(typeface, _fontSize);
490490
font.Edging = _skiaEdging;
491491
font.Subpixel = _skiaSubpixelSmoothing;

0 commit comments

Comments
 (0)